Setting default entity BoundingBox from EntityType data

This commit is contained in:
Konstantin Shandurenko 2021-02-23 18:41:24 +03:00
parent bbe143520e
commit 692dcfed4c

View File

@ -146,7 +146,7 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
this.entityMeta = entityType.getMetaConstructor().apply(this, this.metadata);
setBoundingBox(0, 0, 0);
setBoundingBox(entityType.getWidth(), entityType.getHeight(), entityType.getWidth());
setAutoViewable(true);