From a0876a31ca882143db00ffe13377b5a1e1b2e65d Mon Sep 17 00:00:00 2001 From: MachineMuse Date: Fri, 8 Nov 2013 20:14:18 -0700 Subject: [PATCH] fix for bug with sprint assist not deactivating when salvaged --- .../machinemuse/powersuits/tick/PlayerTickHandler.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/minecraft/net/machinemuse/powersuits/tick/PlayerTickHandler.java b/src/minecraft/net/machinemuse/powersuits/tick/PlayerTickHandler.java index 323acc8..0e0ee48 100644 --- a/src/minecraft/net/machinemuse/powersuits/tick/PlayerTickHandler.java +++ b/src/minecraft/net/machinemuse/powersuits/tick/PlayerTickHandler.java @@ -7,13 +7,13 @@ import cpw.mods.fml.common.ITickHandler; import cpw.mods.fml.common.TickType; import net.machinemuse.api.ModuleManager; import net.machinemuse.api.moduletrigger.IPlayerTickModule; -import net.machinemuse.numina.general.MuseLogger; -import net.machinemuse.numina.sound.Musique; import net.machinemuse.general.sound.SoundLoader; +import net.machinemuse.numina.general.MuseLogger; +import net.machinemuse.numina.general.MuseMathUtils; +import net.machinemuse.numina.sound.Musique; import net.machinemuse.powersuits.event.MovementManager; import net.machinemuse.utils.MuseHeatUtils; import net.machinemuse.utils.MuseItemUtils; -import net.machinemuse.numina.general.MuseMathUtils; import net.machinemuse.utils.MusePlayerUtils; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -69,7 +69,9 @@ public class PlayerTickHandler implements ITickHandler { } } if (!foundItemWithModule) { - module.onPlayerTickInactive(player, null); + for (ItemStack itemStack : modularItemsEquipped) { + module.onPlayerTickInactive(player, itemStack); + } } } boolean foundItem = modularItemsEquipped.size() > 0;