Compare commits

...
7 Commits
Author SHA1 Message Date
Caedis 052d0a21a2 Pre Release Build
Merged PRs:
	#96

Failed PRs:
2025-05-22 20:29:52 -05:00
Caedis 0b55ec15e2 Merge pr-96 2025-05-22 20:29:51 -05:00
Caedis 48490e71f3 gt dep 2025-05-22 20:29:31 -05:00
Vlamonster 4e2dc14bfd Update uses of crafting tools 2025-05-19 02:25:57 +02:00
ceg 71c9976777 Fix ConcurrentModificationException in ItemShieldFocus (#95) 2025-05-18 19:04:37 +02:00
Martin Robertz cc46d6a039 update 2025-05-16 21:57:46 +02:00
Caedis 358a1f213e Replace Baubles with Baubles Expanded (#94) 2025-05-13 08:07:24 -05:00
3 changed files with 9 additions and 4 deletions

No files matched your search

+3 -2
View File
@@ -1,14 +1,15 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
api('com.github.GTNewHorizons:Baubles-Expanded:2.1.7-GTNH:dev')
api('com.github.GTNewHorizons:ModularUI:1.2.18:dev')
api('com.github.GTNewHorizons:ThaumicBoots:1.4.6:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
exclude module: 'Baubles'
}
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.256: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