mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 09:57:45 +01:00
Fixed initial BoundingBox of Pufferfish
This commit is contained in:
parent
405390640b
commit
3f941d51bb
@ -143,10 +143,10 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
|
||||
this.lastY = spawnPosition.getY();
|
||||
this.lastZ = spawnPosition.getZ();
|
||||
|
||||
this.entityMeta = entityType.getMetaConstructor().apply(this, this.metadata);
|
||||
|
||||
setBoundingBox(entityType.getWidth(), entityType.getHeight(), entityType.getWidth());
|
||||
|
||||
this.entityMeta = entityType.getMetaConstructor().apply(this, this.metadata);
|
||||
|
||||
setAutoViewable(true);
|
||||
|
||||
Entity.entityById.put(id, this);
|
||||
|
@ -8,6 +8,7 @@ public class PufferfishMeta extends AbstractFishMeta {
|
||||
|
||||
public PufferfishMeta(@NotNull Entity entity, @NotNull Metadata metadata) {
|
||||
super(entity, metadata);
|
||||
updateBoundingBox(State.UNPUFFED);
|
||||
}
|
||||
|
||||
public State getState() {
|
||||
|
Loading…
Reference in New Issue
Block a user