Skip to content

Commit 7fcbf3a

Browse files
committed
修复bug
1 parent 504521a commit 7fcbf3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/circulation/random_complement/client/handler/RCInputHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void onInputEvent(final InputEvent.KeyInputEvent event) {
9393
if (isCreative && GuiScreen.isCtrlKeyDown() && state.getBlock().hasTileEntity(state))
9494
te = world.getTileEntity(target.getBlockPos());
9595

96-
result = state.getBlock().getPickBlock(state, target, world, target.getBlockPos(), player);
96+
result = state.getBlock().getPickBlock(state, target, world, target.getBlockPos(), player).copy();
9797
}
9898

9999
if (result.isEmpty()) {
@@ -152,7 +152,7 @@ public void onInputEvent(final InputEvent.MouseInputEvent event) {
152152
if (isCreative && GuiScreen.isCtrlKeyDown() && state.getBlock().hasTileEntity(state))
153153
te = world.getTileEntity(target.getBlockPos());
154154

155-
result = state.getBlock().getPickBlock(state, target, world, target.getBlockPos(), player);
155+
result = state.getBlock().getPickBlock(state, target, world, target.getBlockPos(), player).copy();
156156
}
157157

158158
if (result.isEmpty()) {

0 commit comments

Comments
 (0)