This commit is contained in:
gnembon committed 2019-10-02 16:17:07 -03:00
1 parent 412b33fee2
commit 6f156f9fc2
7 files changed
+12 -12

No files matched your search

@@ -12,7 +12,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(HuskEntity.class)
public class HuskEntityMixin
{
@Redirect(method = "method_20677", at = @At(value = "INVOKE", target="Lnet/minecraft/world/IWorld;isSkyVisible(Lnet/minecraft/util/math/BlockPos;)Z"))
@Redirect(method = "canSpawn", at = @At(value = "INVOKE", target="Lnet/minecraft/world/IWorld;isSkyVisible(Lnet/minecraft/util/math/BlockPos;)Z"))
private static boolean isSkylightOrTempleVisible(IWorld iWorld, BlockPos blockPos_1)
{
return iWorld.isSkyVisible(blockPos_1) ||
@@ -118,7 +118,7 @@ public abstract class PistonBlockEntity_movableTEMixin extends BlockEntity imple
@Inject(method = "fromTag", at = @At(value = "TAIL"))
private void onFromTag(CompoundTag compoundTag_1, CallbackInfo ci)
{
if (CarpetSettings.movableBlockEntities && compoundTag_1.containsKey("carriedTileEntityCM", 10))
if (CarpetSettings.movableBlockEntities && compoundTag_1.contains("carriedTileEntityCM", 10))
{
if (this.pushedBlock.getBlock() instanceof BlockEntityProvider)
this.carriedBlockEntity = ((BlockEntityProvider) (this.pushedBlock.getBlock())).createBlockEntity(this.world);
@@ -17,7 +17,7 @@ public class WorldRenderer_pausedShakeMixin
float initial = 0.0f;
@ModifyVariable(method = "method_22710", argsOnly = true, ordinal = 0 ,at = @At(
@ModifyVariable(method = "render", argsOnly = true, ordinal = 0 ,at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/world/ClientWorld;getEntities()Ljava/lang/Iterable;"
))
@@ -29,7 +29,7 @@ public class WorldRenderer_pausedShakeMixin
return previous;
}
@ModifyVariable(method = "method_22710", argsOnly = true, ordinal = 0 ,at = @At(
@ModifyVariable(method = "render", argsOnly = true, ordinal = 0 ,at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/particle/ParticleManager;renderParticles(Lnet/minecraft/client/render/Camera;F)V",
shift = At.Shift.BEFORE