mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 21:46:19 +00:00
migrate from using block data to block state
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user