mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-22 15:10:05 +00:00
Add back the getEntity Stuff since it seems to work fine
This commit is contained in:
parent
8b3479d477
commit
34298f7dee
@ -89,7 +89,7 @@ public class BukkitEntity implements Entity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public com.sk89q.worldedit.world.entity.EntityType getType() {
|
public com.sk89q.worldedit.world.entity.EntityType getType() {
|
||||||
return EntityTypes.get(type.getName().toUpperCase(Locale.ROOT));
|
return EntityTypes.get(type.getName().toLowerCase(Locale.ROOT));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -63,4 +63,8 @@ public class WorldCopyClipboard extends ReadOnlyClipboard {
|
|||||||
return hasBiomes;
|
return hasBiomes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Entity> getEntities(Region region) {
|
||||||
|
return getExtent().getEntities(region);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ import com.boydti.fawe.util.ExtentTraverser;
|
|||||||
import com.boydti.fawe.util.MaskTraverser;
|
import com.boydti.fawe.util.MaskTraverser;
|
||||||
import com.boydti.fawe.util.MathMan;
|
import com.boydti.fawe.util.MathMan;
|
||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
|
import com.sk89q.worldedit.entity.Entity;
|
||||||
import com.sk89q.worldedit.entity.Player;
|
import com.sk89q.worldedit.entity.Player;
|
||||||
import com.sk89q.worldedit.event.extent.EditSessionEvent;
|
import com.sk89q.worldedit.event.extent.EditSessionEvent;
|
||||||
import com.sk89q.worldedit.extent.AbstractDelegateExtent;
|
import com.sk89q.worldedit.extent.AbstractDelegateExtent;
|
||||||
@ -3054,4 +3055,9 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Entity> getEntities(Region region) {
|
||||||
|
return world.getEntities(region);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -406,6 +406,7 @@ public class ForwardExtentCopy implements Operation {
|
|||||||
});
|
});
|
||||||
EntityVisitor entityVisitor = new EntityVisitor(entities.iterator(), entityCopy);
|
EntityVisitor entityVisitor = new EntityVisitor(entities.iterator(), entityCopy);
|
||||||
Operations.completeBlindly(entityVisitor);
|
Operations.completeBlindly(entityVisitor);
|
||||||
|
affectedEntities += entityVisitor.getAffected();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transExt != null) {
|
if (transExt != null) {
|
||||||
@ -427,8 +428,8 @@ public class ForwardExtentCopy implements Operation {
|
|||||||
return ImmutableList.of(
|
return ImmutableList.of(
|
||||||
TranslatableComponent.of("worldedit.operation.affected.block",
|
TranslatableComponent.of("worldedit.operation.affected.block",
|
||||||
TextComponent.of(affectedBlocks)).color(TextColor.LIGHT_PURPLE),
|
TextComponent.of(affectedBlocks)).color(TextColor.LIGHT_PURPLE),
|
||||||
TranslatableComponent.of("worldedit.operation.affected.biome",
|
// TranslatableComponent.of("worldedit.operation.affected.biome",
|
||||||
TextComponent.of(affectedBiomeCols)).color(TextColor.LIGHT_PURPLE),
|
// TextComponent.of(affectedBiomeCols)).color(TextColor.LIGHT_PURPLE),
|
||||||
TranslatableComponent.of("worldedit.operation.affected.entity",
|
TranslatableComponent.of("worldedit.operation.affected.entity",
|
||||||
TextComponent.of(affectedEntities)).color(TextColor.LIGHT_PURPLE)
|
TextComponent.of(affectedEntities)).color(TextColor.LIGHT_PURPLE)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user