Commit Graph

552 Commits

Author SHA1 Message Date
md_5
f4822eb93d Add additional methods sigs for binary compat 2017-03-24 15:23:23 +11:00
md_5
4959e46f53 Add TeleportCause.COMMAND for inbuilt /tp 2017-03-24 15:14:31 +11:00
md_5
31a852d619 SPIGOT-3142: Plugin event changes not using TeleportCause.PLUGIN 2017-03-24 15:09:34 +11:00
md_5
acf544e775 SPIGOT-3141: Missing TeleportCause.SPECTATE when lift clicking spectate 2017-03-24 15:08:19 +11:00
BlackHole
cf05cccd1b SPIGOT-3143: Don't decrease item stack size if VehicleCreateEvent is cancelled 2017-03-22 15:15:34 +11:00
md_5
257d6cd04f Process entity portalling towards the end of a tick.
Cross world teleportation works by taking a copy of an entity and moving it to a new world. After this happens the original entity is marked as dead so as to be removed from the original world, however it still undergoes one further tick in the main world, but with some information from the new world. It is not so easy to break out of this tick cycle if needed, so instead we move the portalling process towards the end of an existing tick. This ensures that the entity will not be spuriously ticked.
2017-03-20 15:41:15 +11:00
md_5
2aa5ac6c92 SPIGOT-3128: Shift VehicleCreateEvent calling. 2017-03-15 20:48:47 +11:00
md_5
251e4c9215 SPIGOT-3126: Make fireballs do a better job of respecting mobGriefing 2017-03-15 15:26:36 +11:00
md_5
2ad21b87f1 Ensure PlayerResourcePackStatusEvent is synchronous 2017-03-14 21:56:19 +11:00
Nathan Wolf
aa522c91a8 Add getIgnitingBlock to BlockBurnEvent 2017-03-11 17:22:12 +11:00
md_5
7a7c64714e SPIGOT-3107: Try and improve shield knockback further 2017-03-08 14:51:48 +11:00
md_5
cb44e932be SPIGOT-3105: BlockFadeEvent for large snow blocks 2017-03-08 14:24:11 +11:00
md_5
cb61ac0404 MC-111753, SPIGOT-2971: Brewing stand not reloading 2017-02-21 20:47:40 +11:00
md_5
64277ec9bc SPIGOT-3075: EntityTeleportEvent for Shulkers 2017-02-20 09:55:24 +11:00
md_5
1a710213df SPIGOT-3067: Wither skeleton heads not dropping 2017-02-15 10:11:41 +11:00
md_5
2683195ecd SPIGOT-3063: Call EntityAirChangeEvent 2017-02-14 10:34:56 +11:00
md_5
ed8a073298 SPIGOT-3044: BlockDispenseEvent for shulker boxes 2017-01-31 21:38:55 +11:00
md_5
80dd971b52 Make tile activeContainer assignment consistent. 2017-01-27 11:42:21 +11:00
md_5
16b5116c7c SPIGOT-3033: Alter behaviour of cancelled hopper transfers (reverted from commit 334aa07e2f) 2017-01-26 14:08:04 +11:00
md_5
334aa07e2f SPIGOT-3033: Alter behaviour of cancelled hopper transfers 2017-01-26 11:13:00 +11:00
md_5
46226d6a03 SPIGOT-3031: Pigs are not dropping their saddle 2017-01-24 13:39:22 +11:00
Pokechu22
4d3bf20155 Re-enable the vanilla debug MethodProfiler and /debug command
This is highly useful for profiling vanilla code, and in some cases plugin code.  It is somewhat expensive, though, which is why it was initially disabled.

I chose to use a system property instead of a configuration setting because 1) the MethodProfiler is exclusive to CraftBukkit and not part of the general API (the timings system is the general API equivalent), and 2) using a static final boolean property _may_ allow the JITter to optimize out the methods when disabled (though I'm not sure of it).

There are several changes to fix cases where the profiler code was broken slightly by other craftbukkit changes.  All of cases have been fixed, except for the block entity ticking one, due to the cost of the getSimpleName call.  For that, a ticking entry is used instead, so that time spent actually ticking the block entities can be compared with time processing the list.

This (effectively) reverts 7dde6cc566.
2017-01-18 17:42:35 -08:00
md_5
f709362074 SPIGOT-3002: Mob spawners are valid 2017-01-11 09:24:08 +11:00
md_5
27dd3ca45f SPIGOT-2997: Explicitly disallow invalid tiles to be opened 2017-01-10 09:56:20 +11:00
md_5
270755dc06 Fix crash if entities other than players (somehow?) consume their item. 2017-01-09 14:28:49 +11:00
md_5
d5e7885c2e SPIGOT-2990: EntityTeleportEvent for tameable animals following owner 2017-01-05 20:44:26 +11:00
md_5
c91863850d SPIGOT-2989: Use existing horse inventory object. 2017-01-05 15:03:22 +11:00
md_5
ce89845fda SPIGOT-1915: Fix players seeing their own passengers 2017-01-04 10:50:02 +11:00
md_5
63b5f7d338 More robust inventory handling 2017-01-04 10:04:27 +11:00
md_5
613be0d841 SPIGOT-2980: Improve SpawnEgg NBT application and ItemStack conversion. 2017-01-02 16:13:25 +11:00
md_5
bf8303f25d Clear effectsToProccess after applying potion effects 2017-01-02 13:51:16 +11:00
md_5
e2a288c863 SPIGOT-2969: Shulker box removal not updating comparators 2016-12-28 14:23:52 +11:00
md_5
70bc70b4ee SPIGOT-2966: Entirely remove problematic check 2016-12-28 09:50:40 +11:00
md_5
f9e044059f SPIGOT-2960: Fire HOTBAR_MOVE_AND_READD in more cases 2016-12-27 12:14:55 +11:00
md_5
056af8b9c2 SPIGOT-2964: Correct number of shelve sin PrepareEnchantEvent 2016-12-27 11:53:09 +11:00
md_5
0fb3f8b47a Correct some code. 2016-12-24 22:52:50 +11:00
md_5
96f03d9065 SPIGOT-2127: Add DamageCause.ENTITY_SWEEP_ATTACK 2016-12-23 22:40:38 +11:00
md_5
746cf0f0d7 Additional fireworks damage tracking. 2016-12-23 22:32:40 +11:00
Zach Brown
622add8458 MC-88491: Fix projectile colliding with shooter
In some situations, a projectile made collide with the entity that shot
it. This occurs because the game sets the ignored entity incorrectly.
Our fix is to ensure that the shooter is the only entity that gets
ignored by the projectile.
2016-12-23 16:41:54 +11:00
md_5
e232e1519e SPIGOT-2953: Set damager for fireworks 2016-12-22 20:26:27 +11:00
md_5
13a5b12206 SPIGOT-2944: Just apply filtering to players 2016-12-22 16:50:24 +11:00
md_5
a86731306b Update to Minecraft 1.11.2 2016-12-21 22:00:00 +11:00
md_5
fb50a80d0f SPIGOT-2948: Alter filtering logic 2016-12-21 17:12:39 +11:00
md_5
8ea0c87f51 Update to Minecraft 1.11.1 2016-12-21 07:00:00 +11:00
md_5
c8ff65136f SPIGOT-2936: Simplify WorldBorder diff 2016-12-19 23:05:39 +11:00
md_5
4602331b1d SPIGOT-2930: Shift calling of PlayerItemBreakEvent to before break. 2016-12-18 09:26:36 +11:00
md_5
7f313269d7 SPIGOT-2926: Check spawn-npcs setting for NPCs.
Probably should refactor this code to be more similar to Vanilla in future.
2016-12-17 14:26:09 +11:00
md_5
655d8407ce SPIGOT-2918: Always call EnchantItemEvent 2016-12-14 14:38:55 +11:00
md_5
c6d6844254 SPIGOT-2913: Only one enchantment applied to items 2016-12-13 08:44:50 +11:00
md_5
4f479728ee SPIGOT-2912: Fix enchanting with ID of 0 2016-12-12 09:35:31 +11:00