render invisible fixes
This commit is contained in:
@@ -27,7 +27,7 @@ public abstract class ClientWorldMixin {
|
|||||||
public void doRandomBlockDisplayTicks(int xCenter, int yCenter, int i, CallbackInfo info) {
|
public void doRandomBlockDisplayTicks(int xCenter, int yCenter, int i, CallbackInfo info) {
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
boolean showBarrierParticles = this.client.interactionManager.getCurrentGameMode() == GameMode.CREATIVE && (this.client.player.inventory.getMainHandStack().getItem() == Items.BARRIER || this.client.player.inventory.offHand.get(0).getItem() == Items.BARRIER);
|
boolean showBarrierParticles = this.client.interactionManager.getCurrentGameMode() == GameMode.CREATIVE && (this.client.player.inventory.getMainHandStack().getItem() == Items.BARRIER || this.client.player.inventory.offHand.get(0).getItem() == Items.BARRIER);
|
||||||
if (Modules.get().get(RenderInvisible.class).isActive()) showBarrierParticles = true;
|
if (Modules.get().get(RenderInvisible.class).renderBarriers()) showBarrierParticles = true;
|
||||||
|
|
||||||
BlockPos.Mutable mutable = new BlockPos.Mutable();
|
BlockPos.Mutable mutable = new BlockPos.Mutable();
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,16 @@ public class RenderInvisible extends Module {
|
|||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onActivate() {
|
||||||
|
mc.worldRenderer.reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDeactivate() {
|
||||||
|
mc.worldRenderer.reload();
|
||||||
|
}
|
||||||
|
|
||||||
public RenderInvisible() {
|
public RenderInvisible() {
|
||||||
super(Categories.Render, "render-invisible", "Renders invisible entities and blocks.");
|
super(Categories.Render, "render-invisible", "Renders invisible entities and blocks.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"client": [
|
"client": [
|
||||||
"EntityMixin",
|
"EntityMixin",
|
||||||
"ClientWorldMixin",
|
"ClientWorldMixin",
|
||||||
"StructureVoidMixin"
|
"StructureVoidBlockMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|||||||
Reference in New Issue
Block a user