mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-10 02:17:41 +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.lastY = spawnPosition.getY();
|
||||||
this.lastZ = spawnPosition.getZ();
|
this.lastZ = spawnPosition.getZ();
|
||||||
|
|
||||||
this.entityMeta = entityType.getMetaConstructor().apply(this, this.metadata);
|
|
||||||
|
|
||||||
setBoundingBox(entityType.getWidth(), entityType.getHeight(), entityType.getWidth());
|
setBoundingBox(entityType.getWidth(), entityType.getHeight(), entityType.getWidth());
|
||||||
|
|
||||||
|
this.entityMeta = entityType.getMetaConstructor().apply(this, this.metadata);
|
||||||
|
|
||||||
setAutoViewable(true);
|
setAutoViewable(true);
|
||||||
|
|
||||||
Entity.entityById.put(id, this);
|
Entity.entityById.put(id, this);
|
||||||
|
@ -8,6 +8,7 @@ public class PufferfishMeta extends AbstractFishMeta {
|
|||||||
|
|
||||||
public PufferfishMeta(@NotNull Entity entity, @NotNull Metadata metadata) {
|
public PufferfishMeta(@NotNull Entity entity, @NotNull Metadata metadata) {
|
||||||
super(entity, metadata);
|
super(entity, metadata);
|
||||||
|
updateBoundingBox(State.UNPUFFED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public State getState() {
|
public State getState() {
|
||||||
|
Loading…
Reference in New Issue
Block a user