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

little fix

This commit is contained in:
XiaoMoMi
2024-03-09 07:31:15 +08:00
parent a3f2b62394
commit d646b23d70
3 changed files with 5 additions and 5 deletions

View File

@@ -695,7 +695,7 @@ public class ItemManagerImpl implements ItemManager {
if (pot == null) {
return FunctionResult.PASS;
}
final Player player = blockWrapper.getPlayer();;
final Player player = blockWrapper.getPlayer();
final ItemStack itemStack = blockWrapper.getItemInHand();
final Location clicked = blockWrapper.getClickedBlock().getLocation();
State state = new State(player, itemStack, clicked);
@@ -749,7 +749,7 @@ public class ItemManagerImpl implements ItemManager {
return FunctionResult.RETURN;
}
final Player player = blockWrapper.getPlayer();;
final Player player = blockWrapper.getPlayer();
final ItemStack itemStack = blockWrapper.getItemInHand();
final Location clicked = blockWrapper.getClickedBlock().getLocation();
State state = new State(player, itemStack, clicked);

View File

@@ -161,7 +161,7 @@ public class BukkitWorldAdaptor extends AbstractWorldAdaptor {
@EventHandler(ignoreCancelled = true)
public void onWorldLoad(WorldLoadEvent event) {
if (worldManager.isMechanicEnabled(event.getWorld())) {
worldManager.loadWorld(event.getWorld());;
worldManager.loadWorld(event.getWorld());
}
}