Fix setEggCount method from TurtleLayEggEvent (#8385)

This commit is contained in:
Lulu13022002 2022-09-24 18:34:20 +02:00 committed by GitHub
parent b4c025b92c
commit 6d630052fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ index 0000000000000000000000000000000000000000..021356d151ed638068e3e89b8cc77b37
+} +}
diff --git a/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java diff --git a/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..a315c5185cd465dcf63c0ababef195da76dfc786 index 0000000000000000000000000000000000000000..bcc8dba50e3a3df0206c4827bb468bf884837b8b
--- /dev/null --- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java +++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java
@@ -0,0 +1,87 @@ @@ -0,0 +1,87 @@
@ -129,7 +129,7 @@ index 0000000000000000000000000000000000000000..a315c5185cd465dcf63c0ababef195da
+ cancelled = true; + cancelled = true;
+ return; + return;
+ } + }
+ eggCount = Math.min(eggCount, 4); + this.eggCount = Math.min(eggCount, 4);
+ } + }
+ +
+ @Override + @Override