Merge pull request #13 from gnembon/perimeterinfo

perimeter
This commit is contained in:
gnembon authored and GitHub committed 2019-05-18 15:09:28 -03:00
commit c495699c5c
1 file changed
+1 -1
@@ -50,7 +50,7 @@ public class PerimeterInfoCommand
{ {
nbttagcompound.putString("id", mobId); nbttagcompound.putString("id", mobId);
entityliving = (MobEntity) EntityType.loadEntityWithPassengers(nbttagcompound, source.getWorld(), (entity_1x) -> { entityliving = (MobEntity) EntityType.loadEntityWithPassengers(nbttagcompound, source.getWorld(), (entity_1x) -> {
entity_1x.setPositionAndAngles(pos.getX(), pos.getY(), pos.getZ(), entity_1x.yaw, entity_1x.pitch); entity_1x.setPositionAndAngles(pos.getX(), pos.getY()+2, pos.getZ(), entity_1x.yaw, entity_1x.pitch);
return !source.getWorld().method_18768(entity_1x) ? null : entity_1x; return !source.getWorld().method_18768(entity_1x) ? null : entity_1x;
}); });
if (entityliving == null) if (entityliving == null)