Skip to content

Commit

Permalink
Fix renderBlock call in lower versions (<=1.18.2) (#986)
Browse files Browse the repository at this point in the history
* Fix 1.18.2 Fabric API

---------

Co-authored-by: XXMA16 <misci16.10.2004@gmail.com>
  • Loading branch information
XXMA16 and XXMA16 authored Mar 7, 2023
1 parent 0813991 commit c44c085
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public void fix(ClassNode classNode, ClassNode old) {
if (trailingBoolean) end--;
boolean trailingRenderLayer = RemappingUtils.getClassName("class_1921").equals(args[end].getInternalName());
if (trailingRenderLayer) end--;
assert "net/minecraftforge/client/model/data/IModelData".equals(args[end].getInternalName());
end--;
assert end > 0 && Type.BOOLEAN == args[end - 1].getSort();
boolean nativeRandom = "java/util/Random".equals(args[end].getInternalName());
String desc = "(Lnet/minecraft/class_2680;"
Expand Down

0 comments on commit c44c085

Please sign in to comment.