mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
More patch work, client patches.
This commit is contained in:
1 parent
f0e5baa8e5
commit
26ca27193c
28 files changed
+380
-403
No files matched your search
@@ -59,6 +59,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.nbt.NBTTagString;
|
||||
import net.minecraft.network.NetHandlerPlayServer;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.SPacketBlockChange;
|
||||
import net.minecraft.stats.StatList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.tileentity.TileEntityNote;
|
||||
@@ -671,7 +672,7 @@ public class ForgeHooks
|
||||
// Tell client the block is gone immediately then process events
|
||||
if (world.getTileEntity(pos) == null)
|
||||
{
|
||||
S23PacketBlockChange packet = new S23PacketBlockChange(world, pos);
|
||||
SPacketBlockChange packet = new SPacketBlockChange(world, pos);
|
||||
packet.blockState = Blocks.air.getDefaultState();
|
||||
entityPlayer.playerNetServerHandler.sendPacket(packet);
|
||||
}
|
||||
@@ -937,4 +938,4 @@ public class ForgeHooks
|
||||
MovingObjectPosition movingObjectPosition = rayTraceEyes(entity, length);
|
||||
return movingObjectPosition == null ? null : movingObjectPosition.hitVec;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user