This commit is contained in:
gnembon committed 2020-09-20 20:38:01 -03:00
1 parent c0707fe544
commit 776f798aec
2 files changed
+3 -2

No files matched your search

@@ -30,7 +30,8 @@ public class WorldRenderer_pausedShakeMixin
return previous;
}
@ModifyVariable(method = "render", argsOnly = true, ordinal = 0 ,at = @At(
// require 0 is for optifine being a bitch as it usually is.
@ModifyVariable(method = "render", argsOnly = true, require = 0, ordinal = 0 ,at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/particle/ParticleManager;renderParticles(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;Lnet/minecraft/client/render/LightmapTextureManager;Lnet/minecraft/client/render/Camera;F)V",
shift = At.Shift.BEFORE
@@ -183,7 +183,7 @@ __portal_renderer(player_name) ->
z = ow_z + 8*dz;
nx = x / 8;
nz = z / 8;
shapes += ['line', shape_duration, 'from', [x,0,z], 'to', [x,255,z], 'line', 5];
shapes += ['line', shape_duration, 'from', [x,0,z], 'to', [x,255,z], 'line', 2];
shapes += ['box', shape_duration, 'from', [x,0,z], 'to', [x+8,255,z+8], 'color', 0x00000000, 'fill', 0xffffff05];
shapes += ['label', shape_duration, 'pos', [x+4, 1,z+4], 'text', [nx, floor(py), nz], 'follow', p, 'snap', 'y'];
)