Skip to content

Commit 8a296f3

Browse files
authored
Merge pull request #509 from UnicacityAddon/feature/hide-fisher-chest-dolphins
feature/hide-fisher-chest-dolphins
2 parents dc4af1b + b0dfd22 commit 8a296f3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/de/rettichlp/ucutils/mixin/ClientPacketListenerMixin.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1616

1717
import static de.rettichlp.ucutils.UCUtils.LOGGER;
18+
import static de.rettichlp.ucutils.UCUtils.configuration;
1819
import static de.rettichlp.ucutils.UCUtils.player;
1920
import static de.rettichlp.ucutils.UCUtils.storage;
2021
import 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();

0 commit comments

Comments
 (0)