3333import net .minecraft .world .IBlockAccess ;
3434import net .minecraft .world .World ;
3535
36- @ Mixin (targets = "ChunkCacheOF" ,
37- remap = false )
36+ @ Mixin (targets = "ChunkCacheOF" )
3837public abstract class ChunkCacheOF_NonShaderMixin extends ChunkCache {
3938 public ChunkCacheOF_NonShaderMixin (World p_i1964_1_ ,
4039 int p_i1964_2_ ,
@@ -52,28 +51,20 @@ public ChunkCacheOF_NonShaderMixin(World p_i1964_1_,
5251 at = @ At (value = "INVOKE" ,
5352 target = "LConfig;isDynamicLights()Z" ,
5453 remap = false ),
55- require = 2 )
54+ expect = 0 ,
55+ require = 0 )
5656 private boolean ftDynamicLights () {
5757 return DynamicLightsDrivers .frontend .enabled ();
5858 }
5959
6060 @ Dynamic
6161 @ Redirect (method = "getLightBrightnessForSkyBlocks" ,
6262 at = @ At (value = "INVOKE" ,
63- target = "LDynamicLights;getCombinedLight(IIII)I" ),
64- expect = 0 ,
65- require = 0 )
66- private int ftCombinedLightsDev (int x , int y , int z , int combinedLight ) {
67- return DynamicLightsDrivers .frontend .getCombinedLight (x , y , z , combinedLight );
68- }
69-
70- @ Dynamic
71- @ Redirect (method = "func_72802_i" ,
72- at = @ At (value = "INVOKE" ,
73- target = "LDynamicLights;getCombinedLight(IIII)I" ),
63+ target = "LDynamicLights;getCombinedLight(IIII)I" ,
64+ remap = false ),
7465 expect = 0 ,
7566 require = 0 )
76- private int ftCombinedLightsObf (int x , int y , int z , int combinedLight ) {
67+ private int ftCombinedLights (int x , int y , int z , int combinedLight ) {
7768 return DynamicLightsDrivers .frontend .getCombinedLight (x , y , z , combinedLight );
7869 }
7970
@@ -83,39 +74,16 @@ private int ftCombinedLightsObf(int x, int y, int z, int combinedLight) {
8374 target = "Lnet/minecraft/world/IBlockAccess;getLightBrightnessForSkyBlocks(IIII)I" ),
8475 expect = 0 ,
8576 require = 0 )
86- private int brightnessFromSuperDev (IBlockAccess instance , int x , int y , int z , int lightValue ) {
87- return super .getLightBrightnessForSkyBlocks (x , y , z , lightValue );
88- }
89-
90- @ Dynamic
91- @ Redirect (method = "func_72802_i" ,
92- at = @ At (value = "INVOKE" ,
93- target = "Lnet/minecraft/world/IBlockAccess;getLightBrightnessForSkyBlocks(IIII)I" ),
94- expect = 0 ,
95- require = 0 )
96- private int brightnessFromSuperObf (IBlockAccess instance , int x , int y , int z , int lightValue ) {
77+ private int brightnessFromSuper (IBlockAccess instance , int x , int y , int z , int lightValue ) {
9778 return super .getLightBrightnessForSkyBlocks (x , y , z , lightValue );
9879 }
9980
100- @ Dynamic
10181 @ Redirect (method = "getBlock" ,
10282 at = @ At (value = "INVOKE" ,
103- target = "Lnet/minecraft/world/IBlockAccess;getBlock(III)Lnet/minecraft/block/Block;" ,
104- remap = true ),
105- expect = 0 ,
106- require = 0 )
107- private Block blockFromSuperDev (IBlockAccess instance , int x , int y , int z ) {
108- return super .getBlock (x , y , z );
109- }
110-
111- @ Dynamic
112- @ Redirect (method = "func_147439_a" ,
113- at = @ At (value = "INVOKE" ,
114- target = "Lnet/minecraft/world/IBlockAccess;getBlock(III)Lnet/minecraft/block/Block;" ,
115- remap = true ),
83+ target = "Lnet/minecraft/world/IBlockAccess;getBlock(III)Lnet/minecraft/block/Block;" ),
11684 expect = 0 ,
11785 require = 0 )
118- private Block blockFromSuperObf (IBlockAccess instance , int x , int y , int z ) {
86+ private Block blockFromSuper (IBlockAccess instance , int x , int y , int z ) {
11987 return super .getBlock (x , y , z );
12088 }
12189}
0 commit comments