diff --git a/gradle.properties b/gradle.properties index d24eeeb1..6061c1da 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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.16 - yarn_mappings=1.16+build.1 + minecraft_version=1.16.1 + yarn_mappings=1.16.1+build.1 loader_version=0.8.8+build.202 # Mod Properties diff --git a/src/main/java/carpet/mixins/LivingEntity_maxCollisionsMixin.java b/src/main/java/carpet/mixins/LivingEntity_maxCollisionsMixin.java index 6ccc3399..e6190b1d 100644 --- a/src/main/java/carpet/mixins/LivingEntity_maxCollisionsMixin.java +++ b/src/main/java/carpet/mixins/LivingEntity_maxCollisionsMixin.java @@ -32,7 +32,7 @@ public abstract class LivingEntity_maxCollisionsMixin extends Entity { List list_1 = this.world.getEntities((Entity)this, this.getBoundingBox(), EntityPredicates.canBePushedBy(this)); if (!list_1.isEmpty()) { - int int_1 = this.world.getGameRules().getInt(GameRules.field_19405);//max entity cramming + int int_1 = this.world.getGameRules().getInt(GameRules.MAX_ENTITY_CRAMMING); int int_2; if (int_1 > 0 && list_1.size() > int_1 - 1 && this.random.nextInt(4) == 0) { int_2 = 0; diff --git a/src/main/java/carpet/mixins/SummonCommandMixin.java b/src/main/java/carpet/mixins/SummonCommandMixin.java index a95736a9..11dcf6e6 100644 --- a/src/main/java/carpet/mixins/SummonCommandMixin.java +++ b/src/main/java/carpet/mixins/SummonCommandMixin.java @@ -36,8 +36,8 @@ public class SummonCommandMixin { ServerWorld world = (ServerWorld) entity.getEntityWorld(); BlockPos at = entity.getBlockPos(); - LocalDifficulty localDifficulty_1 = world.getLocalDifficulty(at); //DO MOB SPAWNING - boolean boolean_2 = world.getGameRules().getBoolean(GameRules.field_19390) && world.random.nextDouble() < (double)localDifficulty_1.getLocalDifficulty() * 0.01D; + LocalDifficulty localDifficulty_1 = world.getLocalDifficulty(at); + boolean boolean_2 = world.getGameRules().getBoolean(GameRules.DO_MOB_SPAWNING) && world.random.nextDouble() < (double)localDifficulty_1.getLocalDifficulty() * 0.01D; if (boolean_2) { SkeletonHorseEntity skeletonHorseEntity_1 = (SkeletonHorseEntity) EntityType.SKELETON_HORSE.create(world); skeletonHorseEntity_1.setTrapped(true);