Skip to content

Commit 2c13f40

Browse files
committed
Fixed not being able to place spawn eggs
1 parent d62189a commit 2c13f40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin/src/main/java/dev/lrxh/neptune/providers/listeners/GlobalListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private boolean isPlayerNotInMatch(Profile profile) {
4141

4242
@EventHandler
4343
public void onCreatureSpawnEvent(CreatureSpawnEvent event) {
44-
if (event.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.SPAWNER_EGG) || event.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.BUCKET)) {
44+
if (event.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.SPAWNER_EGG) || event.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.EGG) || event.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.BUCKET)) {
4545
return;
4646
}
4747
event.setCancelled(true);

0 commit comments

Comments
 (0)