mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 15:09:25 +00:00
Added debug for the target block
This commit is contained in:
@@ -139,6 +139,7 @@ public class WateringCanItem extends AbstractCustomCropsItem {
|
||||
int water = getCurrentWater(itemInHand);
|
||||
|
||||
String blockID = BukkitCustomCropsPlugin.getInstance().getItemManager().blockID(targetBlock);
|
||||
BukkitCustomCropsPlugin.getInstance().debug(blockID);
|
||||
if (targetBlock.getType() == Material.WATER) {
|
||||
blockID = "WATER";
|
||||
}
|
||||
@@ -311,6 +312,7 @@ public class WateringCanItem extends AbstractCustomCropsItem {
|
||||
// for old config compatibility
|
||||
context.arg(ContextKeys.LOCATION, new Location(player.getWorld(), vector.getX() - 0.5,vector.getY() - 1, vector.getZ() - 0.5));
|
||||
String blockID = BukkitCustomCropsPlugin.getInstance().getItemManager().blockID(targetBlock);
|
||||
BukkitCustomCropsPlugin.getInstance().debug(blockID);
|
||||
if (targetBlock.getType() == Material.WATER) {
|
||||
blockID = "WATER";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user