diff options
| author | Zereff06 <aizektro@gmail.com> | 2023-02-27 18:28:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 17:28:50 +0100 |
| commit | 6bdb93743f72b0b4cefb7f7ad57e80b2de446da9 (patch) | |
| tree | d1c6e923e6b9e91aea6f69043b1ed61cd4f25ab6 /src | |
| parent | 619bb97a9c0da47e9bb1e58eecc5669339beea97 (diff) | |
| download | GT5-Unofficial-6bdb93743f72b0b4cefb7f7ad57e80b2de446da9.tar.gz GT5-Unofficial-6bdb93743f72b0b4cefb7f7ad57e80b2de446da9.tar.bz2 GT5-Unofficial-6bdb93743f72b0b4cefb7f7ad57e80b2de446da9.zip | |
Fix-> looting level abuse in EEC (#52)
* fix-> looting level abuse in EEC
Now the maximum is level 4
* Spotless apply for branch fix_EEC_looting_level_abuse for #52 (#53)
Co-authored-by: GitHub GTNH Actions <>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Jakub <53441451+kuba6000@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java b/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java index d70b6ffb41..3dbb2c29b5 100644 --- a/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java +++ b/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java @@ -224,7 +224,7 @@ public class GT_MetaTileEntity_ExtremeExterminationChamber .addInfo("Supports perfect OC and past 1 tick (multiplies outputs)") .addInfo("Recipe time is based on mob health") .addInfo("You can additionally put a weapon to the ULV input bus") - .addInfo("It will speed up the process and apply looting level from the weapon") + .addInfo("It will speed up the process and apply looting level from the weapon (maximum 4 levels)") .addInfo("Also produces 120 Liquid XP per operation").addInfo("If the mob spawns infernal") .addInfo("it will drain 8 times more power") .addInfo("You can prevent infernal spawns by shift clicking with a screwdriver") @@ -480,8 +480,8 @@ public class GT_MetaTileEntity_ExtremeExterminationChamber ex.printStackTrace(); } weaponCache.isValid = true; - weaponCache.looting = EnchantmentHelper - .getEnchantmentLevel(Enchantment.looting.effectId, lootingHolder); + weaponCache.looting = Math + .min(4, EnchantmentHelper.getEnchantmentLevel(Enchantment.looting.effectId, lootingHolder)); weaponCache.id = ItemID.create_NoCopy(lootingHolder, true, true); } if (weaponCache.isValid) attackDamage += weaponCache.attackDamage; |
