mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix bore+warp lenses breaking the destination block. Closes #149
This commit is contained in:
1 parent
c6420168aa
commit
1c752992cf
1 file changed
+2
-1
@@ -13,6 +13,7 @@ package vazkii.botania.common.item.lens;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.projectile.EntityThrowable;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import vazkii.botania.api.internal.IManaBurst;
|
||||
import vazkii.botania.common.block.BlockPistonRelay;
|
||||
@@ -33,7 +34,7 @@ public class LensWarp extends Lens {
|
||||
int worldId = Integer.parseInt(tokens[0]), x = Integer.parseInt(tokens[1]), y = Integer.parseInt(tokens[2]), z = Integer.parseInt(tokens[3]);
|
||||
if(worldId == entity.worldObj.provider.getDimensionId()) {
|
||||
entity.setPosition(x + 0.5, y + 0.5, z + 0.5);
|
||||
burst.setCollidedAt(pos.getBlockPos());
|
||||
burst.setCollidedAt(new BlockPos(x, y, z));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user