File tree Expand file tree Collapse file tree
src/main/java/dev/lapt/nowheel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ private void hookSable(ClientTickEvent.Post event) {
5757 sableHooked = true ;
5858 NeoForge .EVENT_BUS .unregister (this );
5959 ec .addDynamicEntityWhitelist (SableCompat ::onSubLevel );
60+ ec .addDynamicBlockEntityWhitelist (SableCompat ::onSubLevel );
6061 LOGGER .info ("Nowheel Sable compat active" );
6162 }
6263}
Original file line number Diff line number Diff line change 22
33import dev .ryanhcode .sable .companion .SableCompanion ;
44import net .minecraft .world .entity .Entity ;
5+ import net .minecraft .world .level .block .entity .BlockEntity ;
56
67public final class SableCompat {
78
@@ -10,4 +11,8 @@ private SableCompat() { }
1011 public static boolean onSubLevel (Entity entity ) {
1112 return SableCompanion .INSTANCE .getContaining (entity ) != null ;
1213 }
14+
15+ public static boolean onSubLevel (BlockEntity blockEntity ) {
16+ return SableCompanion .INSTANCE .getContaining (blockEntity ) != null ;
17+ }
1318}
You can’t perform that action at this time.
0 commit comments