geforkt von Mirrors/Paper
SPIGOT-1129: Fix spawning leash hitch without adjacent block
Dieser Commit ist enthalten in:
Ursprung
4c43856621
Commit
1fe19a83f9
@ -1092,14 +1092,16 @@ public class CraftWorld implements World {
|
||||
}
|
||||
}
|
||||
|
||||
if (LeashHitch.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityLeash(world, new BlockPosition((int) x, (int) y, (int) z));
|
||||
entity.attachedToPlayer = true;
|
||||
} else {
|
||||
EnumDirection dir = CraftBlock.blockFaceToNotch(face).opposite();
|
||||
if (Painting.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityPainting(world, new BlockPosition((int) x, (int) y, (int) z), dir);
|
||||
} else if (ItemFrame.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityItemFrame(world, new BlockPosition((int) x, (int) y, (int) z), dir);
|
||||
} else if (LeashHitch.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityLeash(world, new BlockPosition((int) x, (int) y, (int) z));
|
||||
entity.attachedToPlayer = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (entity != null && !((EntityHanging) entity).survives()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren