mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 20:52:20 +00:00
Fixed a crash if a burst from a Manastorm Charge hits a mana container block. Closes 2041
This commit is contained in:
1 parent
15a0ae0d21
commit
684e8db7d6
1 file changed
+3
@@ -313,6 +313,9 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
|
||||
|
||||
@Override
|
||||
public int getManaToTransfer(IManaBurst burst, EntityThrowable entity, ItemStack stack, IManaReceiver receiver) {
|
||||
if(stack.getItemDamage() >= lenses.length)
|
||||
return 0;
|
||||
|
||||
return lenses[stack.getItemDamage()].getManaToTransfer(burst, entity, stack, receiver);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user