mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fix shaded mesa not launching entities, closes #3106
Also stops the expiry countdown from incrementing past -1
This commit is contained in:
1 parent
f7da8b4109
commit
b9c1ae85bf
1 file changed
+3
-2
@@ -75,7 +75,8 @@ public class ItemGravityRod extends ItemMod implements IManaUsingItem {
|
||||
if(ticksCooldown > 0)
|
||||
ticksCooldown--;
|
||||
|
||||
ticksTillExpire--;
|
||||
if (ticksTillExpire >= 0)
|
||||
ticksTillExpire--;
|
||||
ItemNBTHelper.setInt(stack, TAG_TICKS_TILL_EXPIRE, ticksTillExpire);
|
||||
ItemNBTHelper.setInt(stack, TAG_TICKS_COOLDOWN, ticksCooldown);
|
||||
|
||||
@@ -220,7 +221,7 @@ public class ItemGravityRod extends ItemMod implements IManaUsingItem {
|
||||
}
|
||||
item.remove();
|
||||
} else {
|
||||
item.setMotion(item.getMotion().mul(3, 1.5, 3));
|
||||
item.setMotion(moveVector.multiply(3, 1.5, 3).toVec3D());
|
||||
}
|
||||
ItemNBTHelper.setInt(stack, TAG_TICKS_COOLDOWN, 10);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user