Fix setEggCount method from TurtleLayEggEvent (#8385)
This commit is contained in:
parent
b4c025b92c
commit
6d630052fd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..a315c5185cd465dcf63c0ababef195da76dfc786
|
||||
index 0000000000000000000000000000000000000000..bcc8dba50e3a3df0206c4827bb468bf884837b8b
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java
|
||||
@@ -0,0 +1,87 @@
|
||||
|
@ -129,7 +129,7 @@ index 0000000000000000000000000000000000000000..a315c5185cd465dcf63c0ababef195da
|
|||
+ cancelled = true;
|
||||
+ return;
|
||||
+ }
|
||||
+ eggCount = Math.min(eggCount, 4);
|
||||
+ this.eggCount = Math.min(eggCount, 4);
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
|
Loading…
Reference in a new issue