Update ItemGrowthRing.java

This commit is contained in:
Mrbysco 2024-03-14 00:29:10 +01:00
parent 44202f9c46
commit ac4d53bde4

View file

@ -43,7 +43,7 @@ public class ItemGrowthRing extends ItemEnergy {
ItemStack equipped = player.getMainHandItem();
int energyUse = 300;
if (StackUtil.isValid(equipped) && equipped == stack && this.getEnergyStored(stack) >= energyUse) {
if (!equipped.isEmpty() && equipped == stack && this.getEnergyStored(stack) >= energyUse) {
List<BlockPos> blocks = new ArrayList<>();
//Adding all possible Blocks