nvm
This commit is contained in:
parent
76e1f95007
commit
ed573143c3
12696
javascript/classes.js
12696
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -332,13 +332,6 @@ public class PlayerControllerMP {
|
|||
if (this.currentGameType != WorldSettings.GameType.SPECTATOR) {
|
||||
IBlockState iblockstate = worldIn.getBlockState(hitPos);
|
||||
|
||||
if(heldStack != null && heldStack.getItem().getUnlocalizedName().toLowerCase().contains("crystal")){
|
||||
EntityEnderCrystal entityendercrystal = new EntityEnderCrystal(worldIn, (double) ((float) hitPos.getX() + 0.5F), (double) ((float) hitPos.getY() + 0.5F), (double) ((float) hitPos.getZ() + 0.5F));
|
||||
worldIn.spawnEntityInWorld(entityendercrystal);
|
||||
if (!player.capabilities.isCreativeMode) {
|
||||
heldStack.stackSize--;
|
||||
}
|
||||
}
|
||||
if ((!player.isSneaking() || player.getHeldItem() == null) && iblockstate.getBlock().onBlockActivated(worldIn, hitPos, iblockstate, player, side, f, f1, f2)) {
|
||||
flag = true;
|
||||
}
|
||||
|
@ -351,6 +344,7 @@ public class PlayerControllerMP {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
this.netClientHandler.addToSendQueue(new C08PacketPlayerBlockPlacement(hitPos, side.getIndex(), player.inventory.getCurrentItem(), f, f1, f2));
|
||||
if (!flag && this.currentGameType != WorldSettings.GameType.SPECTATOR) {
|
||||
if (heldStack == null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user