diff --git a/Spigot-Server-Patches/0046-Add-BeaconEffectEvent.patch b/Spigot-Server-Patches/0046-Add-BeaconEffectEvent.patch index 1571cee90c..a39967042e 100644 --- a/Spigot-Server-Patches/0046-Add-BeaconEffectEvent.patch +++ b/Spigot-Server-Patches/0046-Add-BeaconEffectEvent.patch @@ -1,4 +1,4 @@ -From dc65a8bcffb8c2767d4907e60d516b57f401730e Mon Sep 17 00:00:00 2001 +From e517ad6d7b004bfea02ba11c3e32ff28ba42acdc Mon Sep 17 00:00:00 2001 From: Byteflux Date: Wed, 2 Mar 2016 23:30:53 -0600 Subject: [PATCH] Add BeaconEffectEvent @@ -18,31 +18,32 @@ index 24ae8e2..a5cbda5 100644 public double durationModifier; private boolean h; diff --git a/src/main/java/net/minecraft/server/TileEntityBeacon.java b/src/main/java/net/minecraft/server/TileEntityBeacon.java -index ed5b374..6615890 100644 +index ed5b374..f490dca 100644 --- a/src/main/java/net/minecraft/server/TileEntityBeacon.java +++ b/src/main/java/net/minecraft/server/TileEntityBeacon.java -@@ -13,6 +13,14 @@ import org.bukkit.craftbukkit.entity.CraftHumanEntity; +@@ -13,6 +13,15 @@ import org.bukkit.craftbukkit.entity.CraftHumanEntity; import org.bukkit.entity.HumanEntity; // CraftBukkit end +// Paper start +import org.bukkit.craftbukkit.event.CraftEventFactory; ++import org.bukkit.craftbukkit.potion.CraftPotionUtil; +import org.bukkit.entity.Player; ++import org.bukkit.potion.PotionData; +import org.bukkit.potion.PotionEffect; -+import org.bukkit.potion.PotionEffectType; +import com.destroystokyo.paper.event.block.BeaconEffectEvent; +// Paper end + public class TileEntityBeacon extends TileEntityContainer implements ITickable, IWorldInventory { public static final MobEffectList[][] a = new MobEffectList[][] { { MobEffects.FASTER_MOVEMENT, MobEffects.FASTER_DIG}, { MobEffects.RESISTANCE, MobEffects.JUMP}, { MobEffects.INCREASE_DAMAGE}, { MobEffects.REGENERATION}}; -@@ -85,17 +93,33 @@ public class TileEntityBeacon extends TileEntityContainer implements ITickable, +@@ -85,17 +94,33 @@ public class TileEntityBeacon extends TileEntityContainer implements ITickable, EntityHuman entityhuman; + // Paper start + org.bukkit.block.Block block = world.getWorld().getBlockAt(position.getX(), position.getY(), position.getZ()); -+ PotionEffect primaryEffect = new PotionEffect(PotionEffectType.getByName(this.l.e), 180, b0, true, true); ++ PotionEffect primaryEffect = CraftPotionUtil.toBukkit(new MobEffect(this.l, i, b0, true, true)); + // Paper end + while (iterator.hasNext()) { @@ -52,13 +53,13 @@ index ed5b374..6615890 100644 + BeaconEffectEvent event = new BeaconEffectEvent(block, primaryEffect, (Player) entityhuman.getBukkitEntity(), true); + if (CraftEventFactory.callEvent(event).isCancelled()) continue; + PotionEffect effect = event.getEffect(); -+ entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); ++ entityhuman.getBukkitEntity().addPotionEffect(effect); + // Paper end } if (this.k >= 4 && this.l != this.m && this.m != null) { iterator = list.iterator(); -+ PotionEffect secondaryEffect = new PotionEffect(PotionEffectType.getByName(this.m.e), 180, 0, true, true); // Paper ++ PotionEffect secondaryEffect = org.bukkit.craftbukkit.potion.CraftPotionUtil.toBukkit(new MobEffect(this.m, i, 0, true, true)); // Paper while (iterator.hasNext()) { entityhuman = (EntityHuman) iterator.next(); @@ -67,7 +68,7 @@ index ed5b374..6615890 100644 + BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false); + if (CraftEventFactory.callEvent(event).isCancelled()) continue; + PotionEffect effect = event.getEffect(); -+ entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); ++ entityhuman.getBukkitEntity().addPotionEffect(effect); + // Paper end } } diff --git a/Spigot-Server-Patches/0077-Speedup-BlockPos-by-fixing-inlining.patch b/Spigot-Server-Patches/0076-Speedup-BlockPos-by-fixing-inlining.patch similarity index 99% rename from Spigot-Server-Patches/0077-Speedup-BlockPos-by-fixing-inlining.patch rename to Spigot-Server-Patches/0076-Speedup-BlockPos-by-fixing-inlining.patch index a849f41b55..2c1aa9677f 100644 --- a/Spigot-Server-Patches/0077-Speedup-BlockPos-by-fixing-inlining.patch +++ b/Spigot-Server-Patches/0076-Speedup-BlockPos-by-fixing-inlining.patch @@ -1,4 +1,4 @@ -From 0a11215975146d80e77d2b32dcca515391a2db9c Mon Sep 17 00:00:00 2001 +From fdfdc3dab2a765b9586a86a6551e244b1bc6aaa6 Mon Sep 17 00:00:00 2001 From: Techcable Date: Mon, 7 Mar 2016 12:51:01 -0700 Subject: [PATCH] Speedup BlockPos by fixing inlining diff --git a/Spigot-Server-Patches/0076-Temp-patch-to-nuke-BeaconEffectEvent-until-we-get-so.patch b/Spigot-Server-Patches/0076-Temp-patch-to-nuke-BeaconEffectEvent-until-we-get-so.patch deleted file mode 100644 index bcde977ea9..0000000000 --- a/Spigot-Server-Patches/0076-Temp-patch-to-nuke-BeaconEffectEvent-until-we-get-so.patch +++ /dev/null @@ -1,58 +0,0 @@ -From f0f541994c80d95ab31cb898ddb4debbae47b003 Mon Sep 17 00:00:00 2001 -From: Zach Brown -Date: Thu, 3 Mar 2016 04:45:26 -0600 -Subject: [PATCH] Temp patch to nuke BeaconEffectEvent until we get some sleep - - -diff --git a/src/main/java/net/minecraft/server/TileEntityBeacon.java b/src/main/java/net/minecraft/server/TileEntityBeacon.java -index 6615890..92b1211 100644 ---- a/src/main/java/net/minecraft/server/TileEntityBeacon.java -+++ b/src/main/java/net/minecraft/server/TileEntityBeacon.java -@@ -95,30 +95,34 @@ public class TileEntityBeacon extends TileEntityContainer implements ITickable, - - // Paper start - org.bukkit.block.Block block = world.getWorld().getBlockAt(position.getX(), position.getY(), position.getZ()); -- PotionEffect primaryEffect = new PotionEffect(PotionEffectType.getByName(this.l.e), 180, b0, true, true); -+ // TODO: anytime other than 5 am -+ //PotionEffect primaryEffect = new PotionEffect(PotionEffectType.getById(MobEffectList.getId(this.l)), 180, b0, true, true); - // Paper end - - while (iterator.hasNext()) { - entityhuman = (EntityHuman) iterator.next(); - // Paper start - BeaconEffectEvent -- BeaconEffectEvent event = new BeaconEffectEvent(block, primaryEffect, (Player) entityhuman.getBukkitEntity(), true); -- if (CraftEventFactory.callEvent(event).isCancelled()) continue; -- PotionEffect effect = event.getEffect(); -- entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); -+ //BeaconEffectEvent event = new BeaconEffectEvent(block, primaryEffect, (Player) entityhuman.getBukkitEntity(), true); -+ //if (CraftEventFactory.callEvent(event).isCancelled()) continue; -+ //PotionEffect effect = event.getEffect(); -+ //entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); -+ entityhuman.addEffect(new MobEffect(this.l, i, b0, true, true)); - // Paper end - } - - if (this.k >= 4 && this.l != this.m && this.m != null) { - iterator = list.iterator(); -- PotionEffect secondaryEffect = new PotionEffect(PotionEffectType.getByName(this.m.e), 180, 0, true, true); // Paper -+ // TODO: anytime other than 5 am -+ //PotionEffect primaryEffect = new PotionEffect(PotionEffectType.getById(MobEffectList.getId(this.m)), 180, b0, true, true); - - while (iterator.hasNext()) { - entityhuman = (EntityHuman) iterator.next(); - // Paper start - BeaconEffectEvent -- BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false); -- if (CraftEventFactory.callEvent(event).isCancelled()) continue; -- PotionEffect effect = event.getEffect(); -- entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); -+ //BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false); -+ //if (CraftEventFactory.callEvent(event).isCancelled()) continue; -+ //PotionEffect effect = event.getEffect(); -+ //entityhuman.addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles())); -+ entityhuman.addEffect(new MobEffect(this.m, i, 0, true, true)); - // Paper end - } - } --- -2.7.2 - diff --git a/Spigot-Server-Patches/0078-Optimize-Navigation-Listener.patch b/Spigot-Server-Patches/0077-Optimize-Navigation-Listener.patch similarity index 98% rename from Spigot-Server-Patches/0078-Optimize-Navigation-Listener.patch rename to Spigot-Server-Patches/0077-Optimize-Navigation-Listener.patch index 0dd02626b5..623c3c576c 100644 --- a/Spigot-Server-Patches/0078-Optimize-Navigation-Listener.patch +++ b/Spigot-Server-Patches/0077-Optimize-Navigation-Listener.patch @@ -1,4 +1,4 @@ -From 24c626d4c99727d3d22ce44cf7357708fbf4bd5b Mon Sep 17 00:00:00 2001 +From 8680d4ea4f4a3409433f75857a5f92a2b173d656 Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 8 Mar 2016 19:13:54 -0500 Subject: [PATCH] Optimize Navigation Listener diff --git a/Spigot-Server-Patches/0079-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch b/Spigot-Server-Patches/0078-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch similarity index 95% rename from Spigot-Server-Patches/0079-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch rename to Spigot-Server-Patches/0078-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch index 313bb7dae8..c6251042c5 100644 --- a/Spigot-Server-Patches/0079-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch +++ b/Spigot-Server-Patches/0078-Don-t-nest-if-we-don-t-need-to-when-cerealising-text.patch @@ -1,4 +1,4 @@ -From 1c64bf34796c41e6d950ae814340c172f1f5f6da Mon Sep 17 00:00:00 2001 +From 8b951fc6098c10ec700fc28360efc2fb7ae7f233 Mon Sep 17 00:00:00 2001 From: kashike Date: Tue, 8 Mar 2016 18:28:43 -0800 Subject: [PATCH] Don't nest if we don't need to when cerealising text diff --git a/Spigot-Server-Patches/0080-Disable-Scoreboards-for-non-players-by-default.patch b/Spigot-Server-Patches/0079-Disable-Scoreboards-for-non-players-by-default.patch similarity index 97% rename from Spigot-Server-Patches/0080-Disable-Scoreboards-for-non-players-by-default.patch rename to Spigot-Server-Patches/0079-Disable-Scoreboards-for-non-players-by-default.patch index d3900e8b28..66490d6983 100644 --- a/Spigot-Server-Patches/0080-Disable-Scoreboards-for-non-players-by-default.patch +++ b/Spigot-Server-Patches/0079-Disable-Scoreboards-for-non-players-by-default.patch @@ -1,4 +1,4 @@ -From c1a962fb1d95ee2a8d8d049f776918e89d679b13 Mon Sep 17 00:00:00 2001 +From 7212983f1d0fec1e4483dab4a9e37073560b5f38 Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 8 Mar 2016 23:25:45 -0500 Subject: [PATCH] Disable Scoreboards for non players by default diff --git a/Spigot-Server-Patches/0081-Add-methods-for-working-with-arrows-stuck-in-living-.patch b/Spigot-Server-Patches/0080-Add-methods-for-working-with-arrows-stuck-in-living-.patch similarity index 96% rename from Spigot-Server-Patches/0081-Add-methods-for-working-with-arrows-stuck-in-living-.patch rename to Spigot-Server-Patches/0080-Add-methods-for-working-with-arrows-stuck-in-living-.patch index 8c1757c5c7..c142a4e54b 100644 --- a/Spigot-Server-Patches/0081-Add-methods-for-working-with-arrows-stuck-in-living-.patch +++ b/Spigot-Server-Patches/0080-Add-methods-for-working-with-arrows-stuck-in-living-.patch @@ -1,4 +1,4 @@ -From cccaa58b370ea1d06cb7c18f9c635dd0a91085e6 Mon Sep 17 00:00:00 2001 +From 63947a2a46bc67cc097163e3958b80ea7eb74bd3 Mon Sep 17 00:00:00 2001 From: mrapple Date: Sun, 25 Nov 2012 13:43:39 -0600 Subject: [PATCH] Add methods for working with arrows stuck in living entities diff --git a/Spigot-Server-Patches/0082-Complete-resource-pack-API.patch b/Spigot-Server-Patches/0081-Complete-resource-pack-API.patch similarity index 98% rename from Spigot-Server-Patches/0082-Complete-resource-pack-API.patch rename to Spigot-Server-Patches/0081-Complete-resource-pack-API.patch index 5d2b2debea..ed0b824ef0 100644 --- a/Spigot-Server-Patches/0082-Complete-resource-pack-API.patch +++ b/Spigot-Server-Patches/0081-Complete-resource-pack-API.patch @@ -1,4 +1,4 @@ -From ba76b4cb1be00b84939bdffcb7206f9c18edc838 Mon Sep 17 00:00:00 2001 +From a38e6329573c936add21981f1afe62db94b47d59 Mon Sep 17 00:00:00 2001 From: Jedediah Smith Date: Sat, 4 Apr 2015 23:17:52 -0400 Subject: [PATCH] Complete resource pack API