mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 22:34:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
052d0a21a2 | ||
|
|
0b55ec15e2 | ||
|
|
48490e71f3 | ||
|
|
4e2dc14bfd | ||
|
|
71c9976777 |
No files matched your search
+1
-1
@@ -11,5 +11,5 @@ dependencies {
|
||||
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
||||
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.285:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.295-pre:dev')
|
||||
}
|
||||
@@ -66,7 +66,7 @@ public class ItemMaintenanceFocus extends ItemBaseFocus {
|
||||
hatch.mHardHammer = true;
|
||||
hatch.mSolderingTool = true;
|
||||
hatch.mWrench = true;
|
||||
hatch.mSoftHammer = true;
|
||||
hatch.mSoftMallet = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
package emt.item.focus;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
@@ -50,7 +53,8 @@ public class ItemShieldFocus extends ItemBaseFocus {
|
||||
@Override
|
||||
public void onUsingFocusTick(ItemStack itemstack, EntityPlayer player, int count) {
|
||||
ItemWandCasting wand = (ItemWandCasting) itemstack.getItem();
|
||||
for (PotionEffect effect : player.getActivePotionEffects()) {
|
||||
List<PotionEffect> potionEffects = new ArrayList<>(player.getActivePotionEffects());
|
||||
for (PotionEffect effect : potionEffects) {
|
||||
IC2.platform.removePotion(player, effect.getPotionID());
|
||||
}
|
||||
if (!player.capabilities.isCreativeMode
|
||||
|
||||
Reference in new issue
Block a user