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