Skip to content

Commit

Permalink
Water renderer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
encode32 committed Mar 18, 2019
1 parent 99a5573 commit aa8dcdb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/net/encode/customclientrender/CustomClientRenderMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,18 @@ public void init() {
return null;
});

HookManager.getInstance().registerHook("com.wurmonline.client.renderer.terrain.WaterRenderer", "execute",
HookManager.getInstance().registerHook("com.wurmonline.client.renderer.terrain.AdvancedWaterRenderer", "execute",
"(Ljava/lang/Object;)V", () -> (proxy, method, args) -> {

if(renderWater)
{
method.invoke(proxy, args);
}

return null;
});

HookManager.getInstance().registerHook("com.wurmonline.client.renderer.terrain.BasicWaterRenderer", "execute",
"(Ljava/lang/Object;)V", () -> (proxy, method, args) -> {

if(renderWater)
Expand Down

0 comments on commit aa8dcdb

Please sign in to comment.