9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-25 09:59:20 +00:00

update packs

This commit is contained in:
XiaoMoMi
2024-03-13 07:24:56 +08:00
parent a8b902d519
commit 76044db118
3 changed files with 0 additions and 10 deletions

View File

@@ -527,11 +527,6 @@ public class ItemManagerImpl implements ItemManager {
return FunctionResult.PASS;
}
Player player = furnitureWrapper.getPlayer();
// prevent players from rotating the crops
if (player.isSneaking()) {
return FunctionResult.CANCEL_EVENT_AND_RETURN;
}
Location cropLocation = furnitureWrapper.getLocation();
ItemStack itemInHand = furnitureWrapper.getItemInHand();
String itemID = getItemID(itemInHand);
@@ -1689,11 +1684,6 @@ public class ItemManagerImpl implements ItemManager {
}
Player player = interactWrapper.getPlayer();
// prevent players from rotating the crops
if (player.isSneaking() && interactWrapper instanceof InteractFurnitureWrapper) {
return FunctionResult.CANCEL_EVENT_AND_RETURN;
}
Location cropLocation = interactWrapper.getLocation().toBlockLocation();
ItemStack itemInHand = interactWrapper.getItemInHand();
State cropState = new State(player, itemInHand, cropLocation);