Fixed initial BoundingBox of Pufferfish

This commit is contained in:
Konstantin Shandurenko 2021-02-23 20:04:30 +03:00
parent 405390640b
commit 3f941d51bb
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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() {