9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00

Update RightClickCustomBlock.java

This commit is contained in:
Xiao-MoMi
2022-05-29 22:50:21 +08:00
parent 592e4598df
commit 487a1a439e

View File

@@ -281,7 +281,7 @@ public class RightClickCustomBlock implements Listener {
x = 4;
z = 4;
} else return;
//虽Who cares一点水呢
if(customStack.getDurability() > 0){
CustomStack.byItemStack(itemStack).setDurability(CustomStack.byItemStack(itemStack).getDurability() - 1);
}else return;
@@ -291,7 +291,6 @@ public class RightClickCustomBlock implements Listener {
//获取玩家朝向
float yaw = player.getLocation().getYaw();
//提前获取ID与命名空间以免for循环循环get
String wateredPot = ConfigManager.Config.watered_pot;
String pot = ConfigManager.Config.pot;