This commit is contained in:
gnembon committed 2020-03-07 20:29:05 -04:00
1 parent c30cf5e4ff
commit 3a0a8325e1
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1G
# check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html
minecraft_version=20w10a
yarn_mappings=20w10a+build.2
yarn_mappings=20w10a+build.10
loader_version=0.7.8+build.186
# Mod Properties
@@ -24,6 +24,6 @@ public abstract class ThrownEnderpearlEntity_fakePlayersMixin extends ThrownItem
))
private boolean isConnectionGood(ClientConnection clientConnection)
{
return clientConnection.isOpen() || method_24921() instanceof EntityPlayerMPFake; // getOwner()
return clientConnection.isOpen() || getOwner() instanceof EntityPlayerMPFake;
}
}
@@ -1098,7 +1098,7 @@ public class CarpetExpression
{
BlockPos pos = BlockValue.fromParams((CarpetContext)c, lv, 0).block.getPos();
ChunkPos chunkPos = new ChunkPos(pos);
Value ret = new NumericValue(ChunkRandom.create(
Value ret = new NumericValue(ChunkRandom.getSlimeRandom(
chunkPos.x, chunkPos.z,
((CarpetContext)c).s.getWorld().getSeed(),
987234911L
+2 -2
View File
@@ -6,7 +6,7 @@ import net.minecraft.entity.SpawnType;
import net.minecraft.entity.ai.TargetFinder;
import net.minecraft.entity.ai.goal.WanderAroundGoal;
import net.minecraft.entity.mob.MobEntityWithAi;
import net.minecraft.entity.mob.ZombiePigmanEntity;
import net.minecraft.entity.mob.ZombifiedPiglinEntity;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.text.BaseText;
import net.minecraft.util.math.BlockPos;
@@ -218,7 +218,7 @@ public class BlockInfo
private static BaseText wander_chances(BlockPos pos, World worldIn)
{
MobEntityWithAi creature = new ZombiePigmanEntity(EntityType.ZOMBIFIED_PIGLIN, worldIn);
MobEntityWithAi creature = new ZombifiedPiglinEntity(EntityType.ZOMBIFIED_PIGLIN, worldIn);
creature.initialize(worldIn, worldIn.getLocalDifficulty(pos), SpawnType.NATURAL, null, null);
creature.refreshPositionAndAngles(pos, 0.0F, 0.0F);
WanderAroundGoal wander = new WanderAroundGoal(creature, 0.8D);