File tree Expand file tree Collapse file tree
src/main/java/com/circulation/circulation_networks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .circulation .circulation_networks .packets ;
22
3- import com .circulation .circulation_networks .handlers .ConfigOverrideRenderingHandler ;
43import com .circulation .circulation_networks .handlers .NodeNetworkRenderingHandler ;
54import com .circulation .circulation_networks .handlers .SpoceRenderingHandler ;
65import com .circulation .circulation_networks .utils .Packet ;
@@ -30,7 +29,6 @@ public void toBytes(ByteBuf buf) {
3029 public IMessage onMessage (RenderingClear message , MessageContext ctx ) {
3130 NodeNetworkRenderingHandler .INSTANCE .clearLinks ();
3231 SpoceRenderingHandler .INSTANCE .clear ();
33- ConfigOverrideRenderingHandler .INSTANCE .clear ();
3432 return null ;
3533 }
3634}
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ public void onWorldLoad(WorldEvent.Load event) {
158158 @ SubscribeEvent
159159 public void onPlayerChangedDimension (PlayerEvent .PlayerChangedDimensionEvent event ) {
160160 if (event .player instanceof EntityPlayerMP player ) {
161+ NET_CHANNEL .sendTo (new ConfigOverrideRendering (player .dimension ), player );
161162 NET_CHANNEL .sendTo (RenderingClear .INSTANCE , player );
162163 }
163164 }
You can’t perform that action at this time.
0 commit comments