mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-04 15:41:46 +00:00
update packs
This commit is contained in:
Binary file not shown.
BIN
CustomCrops_3.4_Basic_Pack.zip
Normal file
BIN
CustomCrops_3.4_Basic_Pack.zip
Normal file
Binary file not shown.
@@ -527,11 +527,6 @@ public class ItemManagerImpl implements ItemManager {
|
|||||||
return FunctionResult.PASS;
|
return FunctionResult.PASS;
|
||||||
}
|
}
|
||||||
Player player = furnitureWrapper.getPlayer();
|
Player player = furnitureWrapper.getPlayer();
|
||||||
// prevent players from rotating the crops
|
|
||||||
if (player.isSneaking()) {
|
|
||||||
return FunctionResult.CANCEL_EVENT_AND_RETURN;
|
|
||||||
}
|
|
||||||
|
|
||||||
Location cropLocation = furnitureWrapper.getLocation();
|
Location cropLocation = furnitureWrapper.getLocation();
|
||||||
ItemStack itemInHand = furnitureWrapper.getItemInHand();
|
ItemStack itemInHand = furnitureWrapper.getItemInHand();
|
||||||
String itemID = getItemID(itemInHand);
|
String itemID = getItemID(itemInHand);
|
||||||
@@ -1689,11 +1684,6 @@ public class ItemManagerImpl implements ItemManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Player player = interactWrapper.getPlayer();
|
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();
|
Location cropLocation = interactWrapper.getLocation().toBlockLocation();
|
||||||
ItemStack itemInHand = interactWrapper.getItemInHand();
|
ItemStack itemInHand = interactWrapper.getItemInHand();
|
||||||
State cropState = new State(player, itemInHand, cropLocation);
|
State cropState = new State(player, itemInHand, cropLocation);
|
||||||
|
|||||||
Reference in New Issue
Block a user