Intial Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package localmods.mtkviewpoint;
|
||||
|
||||
import me.zed_0xff.zombie_buddy.Patch;
|
||||
import viewpoint.core.Frame;
|
||||
import viewpoint.render.SceneData;
|
||||
|
||||
public final class RenderPatches {
|
||||
private RenderPatches() {}
|
||||
|
||||
@Patch(className="viewpoint.FP",methodName="captureWorld")
|
||||
public static class Snapshot {
|
||||
@Patch.OnExit
|
||||
public static void exit(@Patch.Argument(0) Frame frame) {
|
||||
try { ProjectileBridge.capture(frame); }
|
||||
catch (Throwable error) { TracerRenderer.fail(error); }
|
||||
}
|
||||
}
|
||||
|
||||
@Patch(className="viewpoint.render.WorldRenderer",methodName="drawWeather")
|
||||
public static class Draw {
|
||||
@Patch.OnExit
|
||||
public static void exit(@Patch.Argument(0) SceneData scene) {
|
||||
TracerRenderer.draw(scene);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user