migrate from using block data to block state

This commit is contained in:
2024-12-01 18:04:30 +01:00
parent 50d1d83612
commit f217d4a191
4 changed files with 16 additions and 8 deletions
@@ -277,7 +277,7 @@ public class BlockEditCommands {
Selection selection = bePlayer.getSelection();
BlockEditAPI.runOperation(selection, 1, new SetOperation(blockState.getBlockData()));
BlockEditAPI.runOperation(selection, 1, new SetOperation(blockState));
player.sendMessage(Component.text("Setting blocks..."));
return Command.SINGLE_SUCCESS;
@@ -308,7 +308,7 @@ public class BlockEditCommands {
Selection selection = bePlayer.getSelection();
BlockEditAPI.runOperation(selection, 1, new ReplaceOperation(toReplace.getBlockData(), replaceWith.getBlockData()));
BlockEditAPI.runOperation(selection, 1, new ReplaceOperation(toReplace.getBlockData(), replaceWith));
player.sendMessage(Component.text("Replacing blocks..."));
return Command.SINGLE_SUCCESS;