mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-24 00:56:38 +00:00
getBlockData -> getBlockState
This commit is contained in:
@@ -24,7 +24,7 @@ public class BufferedPulledBlock implements BufferedItem {
|
||||
public void paste(Vector3 origin, WritableWorld world) {
|
||||
Vector3 mutable = origin.clone();
|
||||
while(mutable.getY() > world.getMinHeight()) {
|
||||
if(!world.getBlockData(mutable).isAir()) {
|
||||
if(!world.getBlockState(mutable).isAir()) {
|
||||
world.setBlockData(mutable, data);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class CheckBlockFunction implements Function<String> {
|
||||
RotationUtil.rotateVector(xz, arguments.getRotation());
|
||||
|
||||
String data = arguments.getWorld()
|
||||
.getBlockData(arguments.getBuffer()
|
||||
.getBlockState(arguments.getBuffer()
|
||||
.getOrigin()
|
||||
.clone()
|
||||
.add(new Vector3(FastMath.roundToInt(xz.getX()),
|
||||
|
||||
Reference in New Issue
Block a user