Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-2784: Fix Withers not being built
Dieser Commit ist enthalten in:
Ursprung
b2f82f0f7f
Commit
a0269d8e72
@ -173,14 +173,14 @@
|
|||||||
+
|
+
|
||||||
+ // Special case juke boxes as they update their tile entity. Copied from ItemRecord.
|
+ // Special case juke boxes as they update their tile entity. Copied from ItemRecord.
|
||||||
+ // PAIL: checkme on updates.
|
+ // PAIL: checkme on updates.
|
||||||
+ if (this.getItem() instanceof ItemRecord) {
|
+ if (this.item instanceof ItemRecord) {
|
||||||
+ ((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, world.getType(blockposition), this);
|
+ ((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, world.getType(blockposition), this);
|
||||||
+ world.a((EntityHuman) null, 1010, blockposition, Item.getId(this.item));
|
+ world.a((EntityHuman) null, 1010, blockposition, Item.getId(this.item));
|
||||||
+ this.subtract(1);
|
+ this.subtract(1);
|
||||||
+ entityhuman.b(StatisticList.Z);
|
+ entityhuman.b(StatisticList.Z);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (this.getItem() == Items.SKULL) { // Special case skulls to allow wither spawns to be cancelled
|
+ if (this.item == Items.SKULL) { // Special case skulls to allow wither spawns to be cancelled
|
||||||
+ BlockPosition bp = blockposition;
|
+ BlockPosition bp = blockposition;
|
||||||
+ if (!world.getType(blockposition).getBlock().a(world, blockposition)) {
|
+ if (!world.getType(blockposition).getBlock().a(world, blockposition)) {
|
||||||
+ if (!world.getType(blockposition).getMaterial().isBuildable()) {
|
+ if (!world.getType(blockposition).getMaterial().isBuildable()) {
|
||||||
@ -198,8 +198,8 @@
|
|||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ // SPIGOT-1288 - play sound stripped from ItemBlock
|
+ // SPIGOT-1288 - play sound stripped from ItemBlock
|
||||||
+ if (this.getItem() instanceof ItemBlock) {
|
+ if (this.item instanceof ItemBlock) {
|
||||||
+ SoundEffectType soundeffecttype = ((ItemBlock) this.getItem()).getBlock().getStepSound();
|
+ SoundEffectType soundeffecttype = ((ItemBlock) this.item).getBlock().getStepSound();
|
||||||
+ world.a(entityhuman, blockposition, soundeffecttype.e(), SoundCategory.BLOCKS, (soundeffecttype.a() + 1.0F) / 2.0F, soundeffecttype.b() * 0.8F);
|
+ world.a(entityhuman, blockposition, soundeffecttype.e(), SoundCategory.BLOCKS, (soundeffecttype.a() + 1.0F) / 2.0F, soundeffecttype.b() * 0.8F);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren