Merge branch 'master' into 1.16

This commit is contained in:
gnembon committed 2020-07-21 12:45:07 -03:00
commit 7b4c3f8add
2 files changed
+2 -2

No files matched your search

@@ -53,7 +53,7 @@ public class PerimeterInfoCommand
{
nbttagcompound.putString("id", mobId);
Entity baseEntity = EntityType.loadEntityWithPassengers(nbttagcompound, source.getWorld(), (entity_1x) -> {
entity_1x.refreshPositionAndAngles(pos.offset(Direction.UP,2), entity_1x.yaw, entity_1x.pitch);
entity_1x.refreshPositionAndAngles(new BlockPos(pos.getX(), -10, pos.getZ()), entity_1x.yaw, entity_1x.pitch);
return !source.getWorld().tryLoadEntity(entity_1x) ? null : entity_1x;
});
if (!(baseEntity instanceof MobEntity))
@@ -195,7 +195,7 @@ public class CarpetEventServer
public void removeEventCall(String hostName, String funName)
{
callList.removeIf((c)-> c.function.getString().equals(funName) && ( hostName == null || c.host.equalsIgnoreCase(hostName) ) );
callList.removeIf((c)-> c.function.getString().equals(funName) && ( hostName == c.host || (c.host != null && c.host.equalsIgnoreCase(hostName) )) );
}
public void removeAllCalls(String hostName)