mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Fix location of Digital Miner and Laser Fake Players, for BlockBreakEvent
Closes #98
This commit is contained in:
6 files changed
+11
-32
No files matched your search
@@ -365,7 +365,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
private boolean canMine(Coord4D coord) {
|
||||
IBlockState state = coord.getBlockState(world);
|
||||
|
||||
EntityPlayer dummy = Mekanism.proxy.getDummyPlayer((WorldServer) world, coord.x, coord.y, coord.z).get();
|
||||
EntityPlayer dummy = Mekanism.proxy.getDummyPlayer((WorldServer) world, pos).get();
|
||||
BlockEvent.BreakEvent event = new BlockEvent.BreakEvent(world, coord.getPos(), state, dummy);
|
||||
MinecraftForge.EVENT_BUS.post(event);
|
||||
|
||||
|
||||
Reference in new issue
Block a user