Skip to content

Commit

Permalink
Fix injectBeamFormerSkip signature
Browse files Browse the repository at this point in the history
Closes #21
  • Loading branch information
NotMyWing committed Oct 26, 2023
1 parent 54c735b commit a67f12e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import appeng.client.render.cablebus.CableBusBakedModel;
import appeng.client.render.cablebus.CableBusRenderState;
import appeng.client.render.cablebus.QuadRotator;
import appeng.parts.PartModel;
import co.neeve.nae2.common.parts.implementations.PartBeamFormer;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
Expand Down Expand Up @@ -40,8 +39,8 @@ public class MixinCableBusBakedModel {
target = "Ljava/util/EnumMap;get(Ljava/lang/Object;)Ljava/lang/Object;",
ordinal = 0
))
private Object injectBeamFormerSkip(EnumMap<EnumFacing, PartModel> instance, Object facing,
Operation<PartModel> operation) {
private Object injectBeamFormerSkip(EnumMap<EnumFacing, IPartModel> instance, Object facing,
Operation<IPartModel> operation) {
var model = operation.call(instance, facing);
if (model == PartBeamFormer.MODEL_ON || model == PartBeamFormer.MODEL_OFF) return null;
return model;
Expand Down

0 comments on commit a67f12e

Please sign in to comment.