File tree Expand file tree Collapse file tree
src/main/java/de/rettichlp/ucutils/mixin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
1616
1717import static de .rettichlp .ucutils .UCUtils .LOGGER ;
18+ import static de .rettichlp .ucutils .UCUtils .configuration ;
1819import static de .rettichlp .ucutils .UCUtils .player ;
1920import static de .rettichlp .ucutils .UCUtils .storage ;
2021import static java .util .Objects .requireNonNull ;
@@ -87,9 +88,9 @@ public class ClientPacketListenerMixin {
8788 }
8889 }
8990 }
90- case Dolphin dolphin when !dolphin .hasCustomName () -> {
91- LOGGER .info ("Dolphin from fisher chest was not spawned at {}" , entityPos );
91+ case Dolphin dolphin when configuration .getOptions ().miscellaneous ().hideDolphins () && !dolphin .hasCustomName () -> {
9292 world .removeEntity (dolphin .getId (), DISCARDED );
93+ LOGGER .info ("Dolphin from fisher chest was not spawned at {}" , entityPos );
9394 }
9495 case ArmorStand armorStand when armorStand .hasCustomName () -> {
9596 String customNameString = requireNonNull (armorStand .getCustomName ()).getString ();
You can’t perform that action at this time.
0 commit comments