Revert "start reimplementing entities"

This reverts commit aac02ceea1.
This commit is contained in:
Aurora
2020-07-01 14:54:11 +02:00
parent 6fc68da2ce
commit 9fc2387f11
10 changed files with 67 additions and 100 deletions

View File

@ -89,7 +89,7 @@ public class BukkitEntity implements Entity {
@Override
public com.sk89q.worldedit.world.entity.EntityType getType() {
return EntityTypes.get(type.getName().toLowerCase(Locale.ROOT));
return EntityTypes.get(type.getName().toUpperCase(Locale.ROOT));
}
@Override

View File

@ -99,6 +99,7 @@ public class BukkitWorld extends AbstractWorld {
@Override
public List<com.sk89q.worldedit.entity.Entity> getEntities(Region region) {
World world = getWorld();
List<Entity> ents = world.getEntities();
List<com.sk89q.worldedit.entity.Entity> entities = new ArrayList<>();
for (Entity ent : ents) {