Fixed invalid network packet in chiller interaction events
This commit is contained in:
parent
2aa83bdb9a
commit
f5aa3b4b15
1 changed files with 12 additions and 0 deletions
|
@ -60,18 +60,30 @@ public class BlockChiller extends BlockAbstractAccelerator {
|
|||
@Override
|
||||
public void onEntityCollidedWithBlock(final World world, final int x, final int y, final int z, final Entity entity) {
|
||||
super.onEntityCollidedWithBlock(world, x, y, z, entity);
|
||||
if (world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
onEntityEffect(world, x, y, z, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityWalking(final World world, final int x, final int y, final int z, final Entity entity) {
|
||||
super.onEntityWalking(world, x, y, z, entity);
|
||||
if (world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
onEntityEffect(world, x, y, z, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockClicked(final World world, final int x, final int y, final int z, final EntityPlayer entityPlayer) {
|
||||
super.onBlockClicked(world, x, y, z, entityPlayer);
|
||||
if (world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
onEntityEffect(world, x, y, z, entityPlayer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue