Update to Minecraft 1.13

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-22 12:00:00 +10:00
parent d9cf61f1a8
commit 1e014acb80
73 changed files with 469 additions and 418 deletions

View File

@@ -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;
+ }