getBlockData -> getBlockState

This commit is contained in:
dfsek
2021-12-17 08:38:28 -07:00
parent 7da87c27ee
commit 23fcd4a651
9 changed files with 13 additions and 13 deletions

View File

@@ -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;
}

View File

@@ -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()),