Commit graph

3359 Commits

Autor SHA1 Nachricht Datum
Aikar
1953f52da1 SPIGOT-2439: Consistently fire Chunk(Load|Unload)Event
Clean up implementation and firing of both of these events by routing
both unload and load behaviors to consistent method calls.

This fixes issues where a few places would not call Load or Unload events
when it should have.

Additionally, reduces diff by moving the neighbor marking code into these
consistent points.

Additional benefits of the change include improving the neighbor marking
methods to use getChunkIfLoaded instead of getLoadedChunkAt in some places,
as the latter will cause chunks to be marked active and not unload.

Finally, this also updates CraftWorld.loadChunk to use the new methods, as the
previous logic did not properly handle the new unload queue.
2016-06-23 10:34:08 +10:00
Ryan Michela
9af379fc47 SPIGOT-1319: Add EntityBreedEvent 2016-06-19 20:14:09 +10:00
Jadon Fowler
63839165bc
Fix infinite loop when saving chunks
Running `/save-all flush` would start an infinite loop that prints:
    ThreadedAnvilChunkStorage (world): All chunks are saved
2016-06-18 04:31:44 -07:00
Roy Curtis
9856d8a183 Improvements to BookMeta API
* Added hasGeneration()
* Fixed `applyHash()` (used by `CraftMetaItem.hashCode()`) not taking generation into account
* Fixed `equalsCommon()` (used by `CraftMetaItem.equals()`) not taking generation into account
2016-06-16 10:50:15 +10:00
md_5
02f4218da5 SPIGOT-2414: Repeated disconnects 2016-06-15 13:45:11 +10:00
md_5
71cd505d45 SPIGOT-2405: Better event for combust due to fire 2016-06-15 13:31:35 +10:00
md_5
fb568fdc70 SPIGOT-2408: setTicksLived does not properly affect FallingSand 2016-06-13 18:16:15 +10:00
md_5
7f1a32252b SPIGOT-2385: RegionFileCache synchronization issues 2016-06-12 19:28:27 +10:00
md_5
7964365c84 SPIGOT-2398: Armor stands still need to be treated special for gravity 2016-06-12 16:32:51 +10:00
md_5
ac58f3840e SPIGOT-2348: EntityTeleportEvent cancellation 2016-06-12 12:51:53 +10:00
md_5
1f507256e7 SPIGOT-2322: Chunks generating with missing / corrupted data. 2016-06-12 12:28:08 +10:00
md_5
f642d4bcc3 SPIGOT-2397: More calls to VehicleEntityCollisionEvent 2016-06-12 10:45:03 +10:00
minoneer
e2ff10bdcd SPIGOT-1124: Changed To-Location on Teleport event ignored 2016-06-12 10:33:08 +10:00
md_5
0bc2724e51 SPIGOT-2376: Way to distinguish Zombie professions. 2016-06-12 10:28:09 +10:00
md_5
46233ffa8f Add Player.stopSound 2016-06-12 10:28:09 +10:00
md_5
6cbdec1f15 SPIGOT-2381: Use custom spawnreason for dropItem 2016-06-12 10:26:48 +10:00
md_5
1c2593826c SPIGOT-2389: Zombie.setVillager inverted 2016-06-12 10:14:25 +10:00
md_5
fa83b1b80c SPIGOT-2388: Damage must be nulled out in some circumstances 2016-06-12 10:13:51 +10:00
md_5
d5ecbd0e93 SPIGOT-2387: Magma does not provide a block for EntityDamageEvent. 2016-06-11 16:11:51 +10:00
md_5
3ae3ea08f2 SPIGOT-1550, SPIGOT-2306: Custom payload / book + event fixes 2016-06-11 12:21:04 +10:00
md_5
6d3efa0634 SPIGOT-2380: Hitting in the air will always load the chunk at 0,0 2016-06-11 09:25:31 +10:00
Tom E
10c10b3124 SPIGOT-2366: Fix a missed diff PortalTravelAgent.patch 2016-06-09 21:25:21 +10:00
md_5
5fc80916f5 SPIGOT-2369: Tab completing non existant command 2016-06-09 20:47:39 +10:00
md_5
5a55e13868 SPIGOT-2365: Missed hanging diff 2016-06-09 20:42:49 +10:00
md_5
b2f31b74d0 SPIGOT-2364: Fix hanging placing. 2016-06-09 14:27:59 +10:00
md_5
885f4dce9e Restore some Vanilla behaviour to fix magma blocks 2016-06-09 12:50:21 +10:00
md_5
9b4ad2a45f Add DamageCause.HOT_FLOOR 2016-06-09 12:45:07 +10:00
md_5
8b94601269 Better map Zombie/Villager professions. 2016-06-09 12:20:30 +10:00
md_5
a8a4bedd2a Update to Minecraft 1.10 2016-06-09 11:43:49 +10:00
md_5
0cd0397a82 SPIGOT-249: Set skull owner by UUID 2016-06-03 20:41:49 +10:00
md_5
a28041daa7 SPIGOT-1292: BlockState based FlowerPot API. 2016-06-03 20:41:43 +10:00
Roy Curtis
cee5bbf00c SPIGOT-783: API for book generation data. 2016-06-03 20:41:28 +10:00
Sansko1337
dd0e968c6a SPIGOT-713: APIs to manipulate Entity's silent status. 2016-06-03 20:30:48 +10:00
md_5
5ff377a9b2 SPIGOT-2336: Zombie.setVillager(Z)V 2016-05-31 20:55:17 +10:00
md_5
5ae53e0d5c SPIGOT-2335: EntityCreeper.setPowered 2016-05-31 20:53:37 +10:00
md_5
71e5248c8b SPIGOT-636: Decouple EntityCombustByEntity from damageEntity 2016-05-28 22:10:59 +10:00
md_5
106ced01e0 Implement PlayerChangedMainHandEvent 2016-05-27 18:53:36 +10:00
md_5
3c19fef26e SPIGOT-2321: Fully check Vanilla command permissions 2016-05-26 21:06:28 +10:00
md_5
042911fef4 SPIGOT-2311: Cancelling PlayerPortalEvent causes invulnerability until relog 2016-05-25 18:25:49 +10:00
md_5
ef3ccc94e0 SPIGOT-2315: Neighbour chunk unload marking 2016-05-25 18:21:54 +10:00
md_5
a022dd22fd SPIGOT-2303: Use getChunkIfLoaded 2016-05-22 13:57:44 +10:00
md_5
8982e3f33e SPIGOT-2297: Reintroduce getChunkIfLoaded 2016-05-22 11:36:38 +10:00
minoneer
d8637dfb7e Implementation of interface to modify the pumpkin head "derp mode" of a snowman 2016-05-19 20:41:00 +10:00
md_5
88157110ad Implement TabCompleteEvent 2016-05-16 16:59:57 +10:00
md_5
4e19de1295 SPIGOT-2285: New CommandBlock types. 2016-05-16 16:38:43 +10:00
md_5
88123f0569 SPIGOT-2286: Don't store CraftBlockState light level 2016-05-16 16:37:22 +10:00
md_5
6d133d5440 SPIGOT-2282: Get loaded chunk 2016-05-15 22:14:47 +10:00
md_5
3d0ed18e38 Fix CraftBukkit crash report details not showing 2016-05-15 22:12:06 +10:00
md_5
23da8b0ab7 SPIGOT-2270: Retain Java 6 compat 2016-05-12 12:09:28 +10:00
md_5
901c5327f8 SPIGOT-2271: Custom furnace experience error 2016-05-12 12:07:58 +10:00