1.15-pre5-2

This commit is contained in:
gnembon committed 2019-12-05 21:45:14 -04:00
1 parent 75dea94df2
commit d764543f51
4 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html
minecraft_version=1.15-pre4
yarn_mappings=1.15-pre4+build.1
minecraft_version=1.15-pre5
yarn_mappings=1.15-pre5+build.2
loader_version=0.7.2+build.174
# Mod Properties
@@ -52,7 +52,7 @@ public class PerimeterInfoCommand
nbttagcompound.putString("id", mobId);
entityliving = (MobEntity) EntityType.loadEntityWithPassengers(nbttagcompound, source.getWorld(), (entity_1x) -> {
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().tryLoadEntity(entity_1x) ? null : entity_1x;
});
if (entityliving == null)
{
@@ -33,14 +33,14 @@ public class PortalForcer_portalSuffocationMixin
@Redirect(method = "usePortal", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/entity/Entity;method_24203(DDD)V"
target = "Lnet/minecraft/entity/Entity;positAfterTeleport(DDD)V"
))
private void alternativeSetPositionAndAngles(Entity entity, double d, double e, double f)
{
if (CarpetSettings.portalSuffocationFix && CarpetSettings.fixedPosition != null)
entity.method_24203(CarpetSettings.fixedPosition.x, CarpetSettings.fixedPosition.y, CarpetSettings.fixedPosition.z);
entity.positAfterTeleport(CarpetSettings.fixedPosition.x, CarpetSettings.fixedPosition.y, CarpetSettings.fixedPosition.z);
else
entity.method_24203(d, e, f);
entity.positAfterTeleport(d, e, f);
}
@@ -1952,7 +1952,7 @@ public class CarpetExpression
ServerWorld serverWorld = cc.s.getWorld();
Entity entity_1 = EntityType.loadEntityWithPassengers(tag, serverWorld, (entity_1x) -> {
entity_1x.setPositionAndAngles(vec3d.x, vec3d.y, vec3d.z, entity_1x.yaw, entity_1x.pitch);
return !serverWorld.method_18768(entity_1x) ? null : entity_1x;
return !serverWorld.tryLoadEntity(entity_1x) ? null : entity_1x;
});
if (entity_1 == null) {
return LazyValue.NULL;