File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
forge/src/main/java/org/embeddedt/modernfix/forge/mixin/perf/forge_cap_retrieval Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33import net .minecraft .core .Direction ;
44import net .minecraft .world .entity .LivingEntity ;
55import net .minecraftforge .common .capabilities .Capability ;
6- import net .minecraftforge .items . CapabilityItemHandler ;
6+ import net .minecraftforge .common . capabilities . ForgeCapabilities ;
77import org .spongepowered .asm .mixin .Mixin ;
88import org .spongepowered .asm .mixin .injection .At ;
99import org .spongepowered .asm .mixin .injection .Redirect ;
@@ -19,6 +19,6 @@ public class LivingEntityMixin {
1919 */
2020 @ Redirect (method = "getCapability" , at = @ At (value = "INVOKE" , target = "Lnet/minecraft/world/entity/LivingEntity;isAlive()Z" ))
2121 private <T > boolean checkAliveAfterCap (LivingEntity entity , Capability <T > capability , @ Nullable Direction facing ) {
22- return capability == CapabilityItemHandler . ITEM_HANDLER_CAPABILITY && entity .isAlive ();
22+ return capability == ForgeCapabilities . ITEM_HANDLER && entity .isAlive ();
2323 }
2424}
You can’t perform that action at this time.
0 commit comments