115 changes

This commit is contained in:
gnembon committed 2019-08-23 06:58:32 +02:00
1 parent 8a01ebea41
commit 179bc21223
9 files changed
+19 -18

No files matched your search

@@ -1,8 +1,7 @@
package carpet.mixins;
import carpet.fakes.BlockEntityRenderDispatcherInterface;
import com.mojang.blaze3d.platform.GLX;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.GuiLighting;
@@ -44,8 +43,8 @@ public abstract class BlockEntityRenderDispatcher_movableTEMixin implements Bloc
int i = this.world.getLightmapIndex(blockEntity_1.getPos(), 0);
int j = i % 65536;
int k = i / 65536;
GLX.glMultiTexCoord2f(GLX.GL_TEXTURE1, (float) j, (float) k);
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderSystem.glMultiTexCoord2f(33985, (float) j, (float) k);
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
BlockPos blockpos = blockEntity_1.getPos();
this.renderEntity(blockEntity_1, (double) blockpos.getX() - renderOffsetX + xOffset, (double) blockpos.getY() - renderOffsetY + yOffset, (double) blockpos.getZ() - renderOffsetZ + zOffset, partialTicks, destroyStage, false);
}
@@ -27,7 +27,7 @@ public abstract class LivingEntity_maxCollisionsMixin extends Entity
@Shadow protected abstract void pushAway(Entity entity_1);
@Inject(method = "tickPushing", cancellable = true, at = @At("HEAD"))
@Inject(method = "tickCramming", cancellable = true, at = @At("HEAD"))
private void tickPushingReplacement(CallbackInfo ci)
{
List<Entity> list_1 = this.world.getEntities((Entity)this, this.getBoundingBox(), EntityPredicates.canBePushedBy(this));
@@ -21,6 +21,8 @@ public class ServerPlayerInteractionManager_ghostBlocksMixin
{
@Shadow public ServerPlayerEntity player;
/*
1.15 changes the protocol to include instamine as a possible action
@Redirect(method = "method_14263", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/block/BlockState;calcBlockBreakingDelta(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F")
@@ -42,7 +44,7 @@ public class ServerPlayerInteractionManager_ghostBlocksMixin
)
return 1.0f;
return progress;
}
}*/
@ModifyConstant(method = "method_14263",
constant = @Constant(doubleValue = 36D))
@@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(StructureBlockBlockEntity.class)
public abstract class StructureBlockBlockEntity_fillUpdatesMixin
{
@Redirect(method = "loadStructure(Z)Z", at = @At(
@Redirect(method = "method_21864", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/structure/Structure;place(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/structure/StructurePlacementData;)V"
))