mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
Fixes #1498.
This commit is contained in:
parent
99f9794351
commit
6a895a72f7
@ -67,7 +67,7 @@ class HoverBoots extends ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 0, 3) with t
|
||||
|
||||
override def onArmorTick(world: World, player: EntityPlayer, stack: ItemStack): Unit = {
|
||||
super.onArmorTick(world, player, stack)
|
||||
if (player.getActivePotionEffect(Potion.moveSlowdown) == null && getCharge(stack) == 0) {
|
||||
if (!Settings.get.ignorePower && player.getActivePotionEffect(Potion.moveSlowdown) == null && getCharge(stack) == 0) {
|
||||
player.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId, 20, 1))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user