3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00
Paper/nms-patches/WorldGenVillagePieces.patch

38 Zeilen
1.9 KiB
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/WorldGenVillagePieces.java
+++ b/net/minecraft/server/WorldGenVillagePieces.java
2016-02-29 22:32:46 +01:00
@@ -282,10 +282,10 @@
protected void a(NBTTagCompound nbttagcompound) {
super.a(nbttagcompound);
- nbttagcompound.setInt("CA", Block.REGISTRY.a((Object) this.a));
- nbttagcompound.setInt("CB", Block.REGISTRY.a((Object) this.b));
- nbttagcompound.setInt("CC", Block.REGISTRY.a((Object) this.c));
- nbttagcompound.setInt("CD", Block.REGISTRY.a((Object) this.d));
+ nbttagcompound.setInt("CA", Block.REGISTRY.a(this.a));
+ nbttagcompound.setInt("CB", Block.REGISTRY.a(this.b));
+ nbttagcompound.setInt("CC", Block.REGISTRY.a(this.c));
+ nbttagcompound.setInt("CD", Block.REGISTRY.a(this.d));
}
protected void b(NBTTagCompound nbttagcompound) {
@@ -413,8 +413,8 @@
protected void a(NBTTagCompound nbttagcompound) {
super.a(nbttagcompound);
- nbttagcompound.setInt("CA", Block.REGISTRY.a((Object) this.a));
- nbttagcompound.setInt("CB", Block.REGISTRY.a((Object) this.b));
+ nbttagcompound.setInt("CA", Block.REGISTRY.a(this.a));
+ nbttagcompound.setInt("CB", Block.REGISTRY.a(this.b));
}
protected void b(NBTTagCompound nbttagcompound) {
@@ -1602,7 +1602,7 @@
2015-02-26 23:41:06 +01:00
entityvillager.setPositionRotation((double) j1 + 0.5D, (double) k1, (double) l1 + 0.5D, 0.0F, 0.0F);
2016-02-29 22:32:46 +01:00
entityvillager.prepare(world.D(new BlockPosition(entityvillager)), (GroupDataEntity) null);
2015-02-26 23:41:06 +01:00
entityvillager.setProfession(this.c(i1, entityvillager.getProfession()));
- world.addEntity(entityvillager);
+ world.addEntity(entityvillager, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
}
}