1.16-pre6

This commit is contained in:
gnembon committed 2020-06-15 18:59:09 -03:00
1 parent 5bf1b734dc
commit b21731884f
4 files changed
+10 -10

No files matched your search

@@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(World.class)
public abstract class World_fillUpdatesMixin
{
@ModifyConstant(method = "setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z",
@ModifyConstant(method = "method_30092", //setBlockState main
constant = @Constant(intValue = 16))
private int addFillUpdatesInt(int original) {
if (CarpetSettings.impendingFillSkipUpdates)
@@ -21,7 +21,7 @@ public abstract class World_fillUpdatesMixin
return original;
}
@Redirect(method = "setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z", at = @At(
@Redirect(method = "method_30092", at = @At( //setBlockState main
value = "INVOKE",
target = "Lnet/minecraft/world/World;updateNeighbors(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V"
))
@@ -54,7 +54,7 @@ public abstract class World_movableTEMixin implements WorldInterface, WorldAcces
@Shadow public abstract void updateComparators(BlockPos pos, Block block);
@Shadow public abstract boolean setBlockState(BlockPos pos, BlockState state, int flags);
//@Shadow public abstract boolean setBlockState(BlockPos pos, BlockState state, int flags);
@Shadow public abstract boolean isDebugWorld();
@@ -125,9 +125,9 @@ public abstract class World_movableTEMixin implements WorldInterface, WorldAcces
if ((int_1 & 16) == 0)
{
int int_2 = int_1 & -2;
blockState_2.prepare((net.minecraft.world.WorldAccess) this, blockPos_1, int_2);
blockState_1.updateNeighbors((net.minecraft.world.WorldAccess) this, blockPos_1, int_2);
blockState_1.prepare((net.minecraft.world.WorldAccess) this, blockPos_1, int_2);
blockState_2.prepare((net.minecraft.world.WorldAccess) this, blockPos_1, int_2, 512);
blockState_1.updateNeighbors((net.minecraft.world.WorldAccess) this, blockPos_1, int_2, 512);
blockState_1.prepare((net.minecraft.world.WorldAccess) this, blockPos_1, int_2, 512);
}
this.onBlockChanged(blockPos_1, blockState_2, blockState_3);
}
@@ -48,7 +48,7 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
instance.setHealth(20.0F);
instance.removed = false;
instance.stepHeight = 0.6F;
interactionManagerIn.setGameMode(gamemode);
interactionManagerIn.method_30118(gamemode); // setGameMode
server.getPlayerManager().sendToDimension(new EntitySetHeadYawS2CPacket(instance, (byte) (instance.headYaw * 256 / 360)), dimensionId);//instance.dimension);
server.getPlayerManager().sendToDimension(new EntityPositionS2CPacket(instance), dimensionId);//instance.dimension);
instance.getServerWorld().getChunkManager().updateCameraPosition(instance);
@@ -68,7 +68,7 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
playerShadow.setHealth(player.getHealth());
playerShadow.networkHandler.requestTeleport(player.getX(), player.getY(), player.getZ(), player.yaw, player.pitch);
interactionManagerIn.setGameMode(player.interactionManager.getGameMode());
interactionManagerIn.method_30118(player.interactionManager.getGameMode()); // setGameMode
((ServerPlayerEntityInterface) playerShadow).getActionPack().copyFrom(((ServerPlayerEntityInterface) player).getActionPack());
playerShadow.stepHeight = 0.6F;
playerShadow.dataTracker.set(PLAYER_MODEL_PARTS, player.getDataTracker().get(PLAYER_MODEL_PARTS));