From 05ef46994e81dad0c14d77b0e2f7f8a1f308f68d Mon Sep 17 00:00:00 2001 From: aurorasmiles <21148213+aurorasmiles@users.noreply.github.com> Date: Fri, 3 Jul 2020 20:03:34 +0200 Subject: [PATCH] Update IChunkExtent.java fix Indentation --- .../fawe/beta/implementation/IChunkExtent.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/IChunkExtent.java b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/IChunkExtent.java index b299783bb..d651ef673 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/IChunkExtent.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/IChunkExtent.java @@ -106,15 +106,15 @@ public interface IChunkExtent extends Extent { default Entity createEntity(Location location, BaseEntity entity) { final IChunk chunk = getOrCreateChunk(location.getBlockX() >> 4, location.getBlockZ() >> 4); CompoundTag tag = entity.getNbtData(); - Map map = ReflectionUtils.getMap(tag.getValue()); - map.put("Id", new StringTag(entity.getType().getName())); - ListTag pos = (ListTag) map.get("Pos"); - if (pos != null) { - List posList = ReflectionUtils.getList(pos.getValue()); - posList.set(0, new DoubleTag(location.getX() + 0.5)); - posList.set(1, new DoubleTag(location.getY())); - posList.set(2, new DoubleTag(location.getZ() + 0.5)); - } + Map map = ReflectionUtils.getMap(tag.getValue()); + map.put("Id", new StringTag(entity.getType().getName())); + ListTag pos = (ListTag) map.get("Pos"); + if (pos != null) { + List posList = ReflectionUtils.getList(pos.getValue()); + posList.set(0, new DoubleTag(location.getX() + 0.5)); + posList.set(1, new DoubleTag(location.getY())); + posList.set(2, new DoubleTag(location.getZ() + 0.5)); + } chunk.setEntity(tag); return null; }