mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 06:13:49 -07:00
fixes
This commit is contained in:
@@ -31,7 +31,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (this.isPassenger() || this.isVehicle() || !this.canChangeDimensions() || this.removed || !this.valid || !this.isAlive()) {
|
+ if (this.isPassenger() || this.isVehicle() || !this.canChangeDimensions() || this.isRemoved() || !this.valid || !this.isAlive()) {
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
@@ -49,7 +49,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
||||||
+ if (this.generatedByDragonFight) tag.putBoolean("Paper.GeneratedByDragonFight", this.generatedByDragonFight); // Paper - Fix invulnerable end crystals
|
}
|
||||||
|
@@ -0,0 +0,0 @@ public class EndCrystal extends Entity {
|
||||||
|
}
|
||||||
|
|
||||||
|
nbt.putBoolean("ShowBottom", this.showsBottom());
|
||||||
|
+ if (this.generatedByDragonFight) nbt.putBoolean("Paper.GeneratedByDragonFight", this.generatedByDragonFight); // Paper - Fix invulnerable end crystals
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -57,7 +62,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if (nbt.contains("ShowBottom", 1)) {
|
if (nbt.contains("ShowBottom", 1)) {
|
||||||
this.setShowBottom(nbt.getBoolean("ShowBottom"));
|
this.setShowBottom(nbt.getBoolean("ShowBottom"));
|
||||||
}
|
}
|
||||||
+ if (tag.contains("Paper.GeneratedByDragonFight", 1)) this.generatedByDragonFight = tag.getBoolean("Paper.GeneratedByDragonFight"); // Paper - Fix invulnerable end crystals
|
+ if (nbt.contains("Paper.GeneratedByDragonFight", 1)) this.generatedByDragonFight = nbt.getBoolean("Paper.GeneratedByDragonFight"); // Paper - Fix invulnerable end crystals
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ requirePlaced();
|
+ requirePlaced();
|
||||||
+ if (!getTileEntity().openersCounter.opened) {
|
+ if (!getTileEntity().openersCounter.opened) {
|
||||||
+ net.minecraft.world.level.Level world = getTileEntity().getLevel();
|
+ net.minecraft.world.level.Level world = getTileEntity().getLevel();
|
||||||
+ world.blockEvent(getTileEntity().getBlockPos(), getTileEntity().getBlockState().getBlock(), 1, getTileEntity().getViewerCount() + 1);
|
+ world.blockEvent(getTileEntity().getBlockPos(), getTileEntity().getBlockState().getBlock(), 1, getTileEntity().openersCounter.getOpenerCount() + 1);
|
||||||
+ world.playSound(null, getPosition(), net.minecraft.sounds.SoundEvents.ENDER_CHEST_OPEN, net.minecraft.sounds.SoundSource.BLOCKS, 0.5F, world.random.nextFloat() * 0.1F + 0.9F);
|
+ world.playSound(null, getPosition(), net.minecraft.sounds.SoundEvents.ENDER_CHEST_OPEN, net.minecraft.sounds.SoundSource.BLOCKS, 0.5F, world.random.nextFloat() * 0.1F + 0.9F);
|
||||||
+ }
|
+ }
|
||||||
+ getTileEntity().openersCounter.opened = true;
|
+ getTileEntity().openersCounter.opened = true;
|
||||||
|
Reference in New Issue
Block a user