mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Fixed the mana bursts created by the Shard of Laputa and Manastorm Charge being able to be converted to normal ones with prisms. Closes #1307
This commit is contained in:
1 parent
46914d2a8b
commit
bd68382ba7
1 file changed
+2
-1
@@ -16,6 +16,7 @@ import vazkii.botania.api.internal.IManaBurst;
|
||||
import vazkii.botania.api.mana.BurstProperties;
|
||||
import vazkii.botania.api.mana.ILens;
|
||||
import vazkii.botania.api.mana.IManaCollisionGhost;
|
||||
import vazkii.botania.api.mana.ITinyPlanetExcempt;
|
||||
import vazkii.botania.common.block.tile.TileSimpleInventory;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
@@ -24,7 +25,7 @@ public class TilePrism extends TileSimpleInventory implements IManaCollisionGhos
|
||||
public void onBurstCollision(IManaBurst burst) {
|
||||
ItemStack lens = getStackInSlot(0);
|
||||
boolean active = (getBlockMetadata() & 8) == 0;
|
||||
boolean valid = lens != null && lens.getItem() instanceof ILens;
|
||||
boolean valid = lens != null && lens.getItem() instanceof ILens && (!(lens.getItem() instanceof ITinyPlanetExcempt) || ((ITinyPlanetExcempt) lens.getItem()).shouldPull(lens));
|
||||
|
||||
if(active) {
|
||||
burst.setSourceLens(valid ? lens.copy() : null);
|
||||
|
||||
Reference in new issue
Block a user