Commit Graph
3592 Commits
Author SHA1 Message Date
md_5 fcc5dcce54 SPIGOT-3235: Disconnect for payload errors 2017-05-14 09:25:25 +10:00
Lukas Hennig 2b6c9f40ae Set health before entity death. 2017-05-04 19:18:46 +10:00
BlackHole fbb47e8383 SPIGOT-3215: Call BlockPhysicsEvent for tall plants 2017-05-01 19:49:37 +10:00
md_5 fecf4b4137 SPIGOT-3214: Allow book titles up to 32 even though they can't be created by a Vanilla client. 2017-04-30 13:20:43 +10:00
Matthew d9d7552262 Implement getColor / setColor for Shulker entity 2017-04-30 09:54:34 +10:00
Pokechu22 a2af8f0a73 SPIGOT-3207: Fix hiding players in a BukkitRunnable after joining
This happened because "joining" wasn't cleared until the player was ticked.  Runnables (presumably) ran _after_ the player list packet was sent, but before the player was ticked; thus, the player list packet was sent, but not cleared.  The fix is to replace joining with hasSentListPacket, which is set immediately before sending any player list packets (thus, if hidePlayer is called after, it sees that the list packet has been sent and sends a new one to reset it).  With this fix, the player is added to the list and then removed shortly afterwards.

The reason why running /hideall in the example wouldn't fix the invisibility is because the server already thinks the player's been removed from the list (as they're hidden), and thus doesn't want to send another hide packet.  This is correct behavior assuming that they get hidden correctly the first time, which they now do.
2017-04-28 15:27:57 +10:00
Geoff Crossland 6194f6cc49 Drop RegionFile.chunkExists() in favour of Mojang's own version 2017-04-27 21:25:33 +10:00
Matthew 55a1f9ff12 Implement getColor / setColor for TippedArrow 2017-04-26 20:28:27 -04:00
md_5 2453830549 Reset player arrow count on death 2017-04-26 15:56:06 +10:00
md_5 28d993ccec Skip invalid enchants in CraftMetaItem 2017-04-26 15:45:52 +10:00
Senmori c19c2932bf Create NBT TypeId helper class 2017-04-22 15:50:30 +10:00
md_5 7b044defc0 Remove players from vehicle when changing world via NMS methods. 2017-04-21 14:56:41 +10:00
md_5 0ab698655b SPIGOT-3192: Return default value for invalid map icons 2017-04-21 08:20:49 +10:00
md_5 1c3428e534 Add small throttle to book edits. 2017-04-20 22:10:31 +10:00
md_5 4acd0f49e0 Enforce proper limits on books. 2017-04-20 21:45:42 +10:00
md_5 be9ef980b9 Implement cooldown API 2017-04-19 18:04:32 +10:00
Lukas Hennig e04a1793ae Inventory getContents Cleanup 2017-04-17 18:09:15 +10:00
md_5 e17c3d285b Make CraftJukebox.isPlaying locally consistent 2017-04-16 08:26:51 +10:00
md_5 473febc73a Add correct interfaces for comparator / daylight detector 2017-04-16 08:16:49 +10:00
md_5 ac405c3cd4 Fix some blockstate consistency issues. 2017-04-15 18:01:44 +10:00
Pokechu22 1ac133ecc5 SPIGOT-3182: Fix tab-completion in command blocks without leading slash 2017-04-13 17:57:47 -07:00
Jacob Martin d219213e2b Fixes to mob equipment behaviour
* Set correct flag for CanPickUpLoot on NBT load
* Drop previous equipment on mob equipment pickup
2017-04-09 11:45:37 +10:00
md_5 1f6c04c0f4 SPIGOT-3165: Only increment spawncount when mob spawn succeeds 2017-04-06 21:31:27 +10:00
md_5 41a7d14f8c SPIGOT-3162: Experience ignored for custom recipes 2017-04-03 09:06:42 +10:00
md_5 b5f7b6d69f SPIGOT-3157: Use Vanilla gamemode change code 2017-03-31 21:21:11 +11:00
md_5 7dd77d7340 SPIGOT-3154: Sleeping players cannot change dimensions 2017-03-30 21:53:23 +11:00
md_5 d09304e5db SPIGOT-3144: Add missing PrepareAnvilEvent call. 2017-03-25 09:51:02 +11:00
md_5 186c351a3a SPIGOT-3149: StructureGrowEvent for dispenser triggered growth 2017-03-24 21:03:44 +11:00
md_5 f4822eb93d Add additional methods sigs for binary compat 2017-03-24 15:23:23 +11:00
Senmori 319013857d Add Chunk.isSlimeChunk to check if a chunk can spawn slimes 2017-03-24 15:17:47 +11:00
md_5 4959e46f53 Add TeleportCause.COMMAND for inbuilt /tp 2017-03-24 15:14:31 +11:00
Phoenix616 7ea2fbb6eb Add Material.isFuel to check if a material is a furnace fuel. 2017-03-24 15:11:13 +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
md_5 91c315273e Fix trailing whitespace in CraftChunk 2017-03-23 20:19:29 +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
Parker Hawke b80055abfb Properly validate player experience bar progress 2017-03-19 18:31:40 -04:00
bramhaag dfee3d9f9f Add getWidth + getHeight for Entity 2017-03-19 10:51:59 +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 eac85911f0 Don't call super update on unplaced command block metas 2017-03-10 20:30:20 +11:00
md_5 962ffda1a8 Add more notch inventory conversions 2017-03-10 20:03:31 +11:00
md_5 d6aa73d16c SPIGOT-3114: Initialize custom SHULKER_BOX slots 2017-03-10 20:01:31 +11:00
md_5 4316a8c246 SPIGOT-3110: SHULKER_BOX InventoryType 2017-03-08 17:56:08 +11:00
md_5 7a7c64714e SPIGOT-3107: Try and improve shield knockback further 2017-03-08 14:51:48 +11:00
md_5 7fce67144d SPIGOT-3108: Hack around mirroring empty item stacks 2017-03-08 14:35:34 +11:00
md_5 cb44e932be SPIGOT-3105: BlockFadeEvent for large snow blocks 2017-03-08 14:24:11 +11:00