fix: swap EntityID constructor parameters
This commit is contained in:
@ -10,10 +10,10 @@ public class EntityID {
|
||||
|
||||
/**
|
||||
* Constructs a new {@link Entity}-{@link EntityID} based on the given index and {@link EntityType}.
|
||||
* @param id The index of the entity
|
||||
* @param type The type of the entity
|
||||
* @param id The index of the entity
|
||||
*/
|
||||
public EntityID(int id, EntityType type) {
|
||||
public EntityID(EntityType type, int id) {
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
}
|
||||
@ -32,7 +32,7 @@ public class EntityID {
|
||||
* @return The cloned {@link EntityID}
|
||||
*/
|
||||
public EntityID clone() {
|
||||
return new EntityID(id, type);
|
||||
return new EntityID(type, id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user