Update to Minecraft 1.13

This commit is contained in:
md_5
2018-07-22 12:00:00 +10:00
parent 961295e432
commit 1a6b4f5392
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;
+ }