mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-20 23:03:48 -07:00
Update to Minecraft 1.13
This commit is contained in:
@@ -500,9 +500,9 @@
|
||||
@@ -1799,6 +2118,13 @@
|
||||
}
|
||||
|
||||
public void g(boolean flag) {
|
||||
public void setSwimming(boolean flag) {
|
||||
+ // CraftBukkit start
|
||||
+ if (this.bb() != flag && this instanceof EntityLiving) {
|
||||
+ if (this.isSwimming() != flag && this instanceof EntityLiving) {
|
||||
+ if (CraftEventFactory.callToggleSwimEvent((EntityLiving) this, flag).isCancelled()) {
|
||||
+ return;
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user