Commit Graph

2069 Commits

Author SHA1 Message Date
CraftBukkit/Spigot
5c425bc41d Bump MC version
By: md_5 <git@md-5.net>
2016-06-25 14:50:20 +10:00
CraftBukkit/Spigot
1908fefc12 Update to Minecraft 1.10.2
By: md_5 <git@md-5.net>
2016-06-25 11:54:17 +10:00
CraftBukkit/Spigot
26aaa4aceb 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.

By: Aikar <aikar@aikar.co>
2016-06-21 19:08:09 -04:00
CraftBukkit/Spigot
8e8c7d72aa SPIGOT-1319: Add EntityBreedEvent
By: Ryan Michela <deltahat@gmail.com>
2016-06-18 22:00:39 -07:00
CraftBukkit/Spigot
0628968019 Fix infinite loop when saving chunks
Running `/save-all flush` would start an infinite loop that prints:
    ThreadedAnvilChunkStorage (world): All chunks are saved

By: Jadon Fowler <ph4seaber@gmail.com>
2016-06-18 04:25:50 -07:00
CraftBukkit/Spigot
b62f1bfe83 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

By: Roy Curtis <roy.adrian.curtis+github@gmail.com>
2016-06-14 22:40:46 +01:00
CraftBukkit/Spigot
c703d2431c SPIGOT-2414: Repeated disconnects
By: md_5 <git@md-5.net>
2016-06-15 13:45:11 +10:00
CraftBukkit/Spigot
bdf0aef528 SPIGOT-2405: Better event for combust due to fire
By: md_5 <git@md-5.net>
2016-06-15 13:31:35 +10:00
CraftBukkit/Spigot
b2c01f26da SPIGOT-2408: setTicksLived does not properly affect FallingSand
By: md_5 <git@md-5.net>
2016-06-13 18:16:15 +10:00
CraftBukkit/Spigot
c93d857872 SPIGOT-2385: RegionFileCache synchronization issues
By: md_5 <git@md-5.net>
2016-06-12 19:28:27 +10:00
CraftBukkit/Spigot
f5e45ed35f SPIGOT-2398: Armor stands still need to be treated special for gravity
By: md_5 <git@md-5.net>
2016-06-12 16:32:51 +10:00
CraftBukkit/Spigot
5c09622671 SPIGOT-2348: EntityTeleportEvent cancellation
By: md_5 <git@md-5.net>
2016-06-12 12:51:53 +10:00
CraftBukkit/Spigot
c9a10e68a1 SPIGOT-2322: Chunks generating with missing / corrupted data.
By: md_5 <git@md-5.net>
2016-06-12 12:28:08 +10:00
CraftBukkit/Spigot
2270b1425e SPIGOT-2397: More calls to VehicleEntityCollisionEvent
By: md_5 <git@md-5.net>
2016-06-12 10:45:03 +10:00
CraftBukkit/Spigot
3e6ba4f676 SPIGOT-1124: Changed To-Location on Teleport event ignored
By: minoneer <minoneer@gmail.com>
2016-05-30 21:29:10 +02:00
CraftBukkit/Spigot
989192ea0b SPIGOT-2376: Way to distinguish Zombie professions.
By: md_5 <git@md-5.net>
2016-06-11 12:07:17 +10:00
CraftBukkit/Spigot
ec0a8a1910 Add Player.stopSound
By: md_5 <git@md-5.net>
2016-06-11 09:13:54 +10:00
CraftBukkit/Spigot
5dffeea6ee SPIGOT-2381: Use custom spawnreason for dropItem
By: md_5 <git@md-5.net>
2016-06-12 10:26:48 +10:00
CraftBukkit/Spigot
bf1945bcfd SPIGOT-2389: Zombie.setVillager inverted
By: md_5 <git@md-5.net>
2016-06-12 10:14:25 +10:00
CraftBukkit/Spigot
6b0f3ef039 SPIGOT-2388: Damage must be nulled out in some circumstances
By: md_5 <git@md-5.net>
2016-06-12 10:13:51 +10:00
CraftBukkit/Spigot
a9e1194e19 SPIGOT-2387: Magma does not provide a block for EntityDamageEvent.
By: md_5 <git@md-5.net>
2016-06-11 16:11:51 +10:00
CraftBukkit/Spigot
1a8b83514c SPIGOT-1550, SPIGOT-2306: Custom payload / book + event fixes
By: md_5 <git@md-5.net>
2016-06-11 12:17:35 +10:00
CraftBukkit/Spigot
e80d96c274 SPIGOT-2380: Hitting in the air will always load the chunk at 0,0
By: md_5 <git@md-5.net>
2016-06-11 09:21:44 +10:00
CraftBukkit/Spigot
1b648cfd6b SPIGOT-2366: Fix a missed diff PortalTravelAgent.patch
By: Tom E <tomelfring@gmail.com>
2016-06-09 12:00:57 +02:00
CraftBukkit/Spigot
077171a07e SPIGOT-2369: Tab completing non existant command
By: md_5 <git@md-5.net>
2016-06-09 20:47:39 +10:00
CraftBukkit/Spigot
41b7bb0b90 SPIGOT-2365: Missed hanging diff
By: md_5 <git@md-5.net>
2016-06-09 20:42:49 +10:00
CraftBukkit/Spigot
f848ee8019 SPIGOT-2364: Fix hanging placing.
By: md_5 <git@md-5.net>
2016-06-09 14:27:59 +10:00
CraftBukkit/Spigot
67c3b659a5 Restore some Vanilla behaviour to fix magma blocks
By: md_5 <git@md-5.net>
2016-06-09 12:50:21 +10:00
CraftBukkit/Spigot
3b8eb9f744 Add DamageCause.HOT_FLOOR
By: md_5 <git@md-5.net>
2016-06-09 12:45:07 +10:00
CraftBukkit/Spigot
8074673c1d Better map Zombie/Villager professions.
By: md_5 <git@md-5.net>
2016-06-09 12:20:30 +10:00
CraftBukkit/Spigot
a39b7e5f3a Update to Minecraft 1.10
By: md_5 <git@md-5.net>
2016-06-09 11:43:49 +10:00
CraftBukkit/Spigot
604d9373c0 SPIGOT-249: Set skull owner by UUID
By: md_5 <git@md-5.net>
2016-06-01 21:39:49 +10:00
CraftBukkit/Spigot
d1bc45c836 SPIGOT-1292: BlockState based FlowerPot API.
By: md_5 <git@md-5.net>
2016-06-01 17:08:55 +10:00
CraftBukkit/Spigot
531c257647 SPIGOT-783: API for book generation data.
By: Roy Curtis <roy.adrian.curtis+github@gmail.com>
2016-06-03 00:10:06 +01:00
CraftBukkit/Spigot
a9862b5459 SPIGOT-713: APIs to manipulate Entity's silent status.
By: Sansko1337 <sanderknauff@hotmail.com>
2016-05-27 17:34:11 +02:00
CraftBukkit/Spigot
c1bd122e35 SPIGOT-2336: Zombie.setVillager(Z)V
By: md_5 <git@md-5.net>
2016-05-31 20:55:17 +10:00
CraftBukkit/Spigot
18f37c3b32 SPIGOT-2335: EntityCreeper.setPowered
By: md_5 <git@md-5.net>
2016-05-31 20:53:37 +10:00
CraftBukkit/Spigot
e9b7eee369 SPIGOT-636: Decouple EntityCombustByEntity from damageEntity
By: md_5 <git@md-5.net>
2016-05-28 22:10:59 +10:00
CraftBukkit/Spigot
3a3576e181 Implement PlayerChangedMainHandEvent
By: md_5 <git@md-5.net>
2016-05-27 18:53:36 +10:00
CraftBukkit/Spigot
187015b57b SPIGOT-2321: Fully check Vanilla command permissions
By: md_5 <git@md-5.net>
2016-05-26 21:06:28 +10:00
CraftBukkit/Spigot
69c6c3d92c SPIGOT-2311: Cancelling PlayerPortalEvent causes invulnerability until relog
By: md_5 <git@md-5.net>
2016-05-25 18:25:49 +10:00
CraftBukkit/Spigot
aa92b77bfe SPIGOT-2315: Neighbour chunk unload marking
By: md_5 <git@md-5.net>
2016-05-25 18:21:54 +10:00
CraftBukkit/Spigot
ba115c957b SPIGOT-2303: Use getChunkIfLoaded
By: md_5 <git@md-5.net>
2016-05-22 13:57:44 +10:00
CraftBukkit/Spigot
ecb71842df SPIGOT-2297: Reintroduce getChunkIfLoaded
By: md_5 <git@md-5.net>
2016-05-22 11:36:38 +10:00
CraftBukkit/Spigot
e5cc347b6e Implementation of interface to modify the pumpkin head "derp mode" of a snowman
By: minoneer <minoneer@gmail.com>
2016-05-18 00:42:14 +02:00
CraftBukkit/Spigot
07c0e6067b Implement TabCompleteEvent
By: md_5 <git@md-5.net>
2016-05-16 16:59:57 +10:00
CraftBukkit/Spigot
3d355b6e64 SPIGOT-2285: New CommandBlock types.
By: md_5 <git@md-5.net>
2016-05-16 16:38:43 +10:00
CraftBukkit/Spigot
141be4ba51 SPIGOT-2286: Don't store CraftBlockState light level
By: md_5 <git@md-5.net>
2016-05-16 16:37:22 +10:00
CraftBukkit/Spigot
4d42c823d2 SPIGOT-2282: Get loaded chunk
By: md_5 <git@md-5.net>
2016-05-15 22:14:47 +10:00
CraftBukkit/Spigot
477241471c Fix CraftBukkit crash report details not showing
By: md_5 <git@md-5.net>
2016-05-15 22:12:06 +10:00
CraftBukkit/Spigot
d94f1ebe37 SPIGOT-2270: Retain Java 6 compat
By: md_5 <git@md-5.net>
2016-05-12 12:09:28 +10:00
CraftBukkit/Spigot
bc420eace5 SPIGOT-2271: Custom furnace experience error
By: md_5 <git@md-5.net>
2016-05-12 12:07:58 +10:00
CraftBukkit/Spigot
d0547bfe77 Use direct chunk access for neighbour counts on unload
By: md_5 <git@md-5.net>
2016-05-11 15:59:20 +10:00
CraftBukkit/Spigot
3d3e6cdcad Fix some [but not all] chunk unload issues
By: md_5 <git@md-5.net>
2016-05-11 15:34:16 +10:00
CraftBukkit/Spigot
d506c12c07 Minecraft 1.9.4
By: md_5 <git@md-5.net>
2016-05-10 21:47:39 +10:00
CraftBukkit/Spigot
c9a6e9175c SPIGOT-2255: Nether Structure generation ConcurrentModificationException
By: md_5 <git@md-5.net>
2016-05-07 16:33:01 +10:00
CraftBukkit/Spigot
da48f2cbd4 SPIGOT-2134: Use the correct listener in CommandExecute
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-05-01 20:38:40 +01:00
CraftBukkit/Spigot
6ada881202 SPIGOT-2206: playEffect doesn't accept sub classes of the expected data type
By: md_5 <git@md-5.net>
2016-04-26 09:35:17 +10:00
CraftBukkit/Spigot
fbff20c008 SPIGOT-2218: Drop horse chest on death
By: md_5 <git@md-5.net>
2016-04-26 09:26:20 +10:00
CraftBukkit/Spigot
9295c03ce7 Ignore movement packets from dead players.
As funny as the idea sounds of having corpses sliding around it
shouldn't really be allowed. Due to other checks added by CB
previously this was mostly harmless anyway.

By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-24 17:35:59 +01:00
CraftBukkit/Spigot
e622278811 SPIGOT-2213: Fix custom anvil inventory
By: md_5 <git@md-5.net>
2016-04-24 16:20:53 +10:00
CraftBukkit/Spigot
4b22260d42 SPIGOT-2211: Fix offhand slot client refresh
By: md_5 <git@md-5.net>
2016-04-24 12:30:55 +10:00
CraftBukkit/Spigot
d106bad54b Remove debug message.
By: Jacob Martin <jjm_223@hotmail.com>
2016-04-23 09:49:06 -05:00
CraftBukkit/Spigot
97cabc950a SPIGOT-2171: Fix shield blocking sounds
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 13:01:20 +01:00
CraftBukkit/Spigot
7a3f710cf1 SPIGOT-2157: Fix enderman not playing their animation when attacking
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 11:40:16 +01:00
CraftBukkit/Spigot
70d48f98d3 SPIGOT-2134: Support /execute being chained
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 11:24:48 +01:00
CraftBukkit/Spigot
6293f1d626 SPIGOT-2043: Ensure VehicleMoveEvent is always fired for boats
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 11:12:14 +01:00
CraftBukkit/Spigot
77b2d0456e SPIGOT-2014: Respect the spectatorsGenerateChunks gamerule
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 11:00:35 +01:00
CraftBukkit/Spigot
8fe634523c SPIGOT-2191: Fix a missed diff from 1.8.8
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-17 17:47:51 +01:00
CraftBukkit/Spigot
cca53f1f96 staticify backported method
By: md_5 <git@md-5.net>
2016-04-12 18:25:18 +10:00
CraftBukkit/Spigot
70d8b8c90e Backport changes from 16w15a
By: md_5 <git@md-5.net>
2016-04-12 14:06:08 +10:00
CraftBukkit/Spigot
5893d23355 Missing import
By: md_5 <git@md-5.net>
2016-04-11 19:26:47 +10:00
CraftBukkit/Spigot
6eac1fc417 Properly validate boss bar progress
By: 2008Choco <hawkeboyz2@hotmail.com>
2016-04-11 19:16:25 +10:00
CraftBukkit/Spigot
8e83dbabf9 Fix broken potion serialization
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-10 20:54:16 +01:00
CraftBukkit/Spigot
cfffbb4d68 SPIGOT-2085 / SPIGOT-2087 / SPIGOT-2156: Rework internal PotionMeta state to be correct and less complex.
By: t00thpick1 <t00thpick1dirko@gmail.com>
2016-04-09 11:49:04 -04:00
CraftBukkit/Spigot
5c7c823a9a Begin console output with ANSI line erase.
By: Jofkos <JofkosDE@gmail.com>
2016-04-08 17:01:22 +02:00
CraftBukkit/Spigot
4d559fa1ca Update physics on attached block when setting data of attachable blocks
By: md_5 <git@md-5.net>
2016-04-09 12:57:19 +10:00
CraftBukkit/Spigot
6b0ff2a74f SPIGOT-2145: Add missed EntityTeleportEvent diff
By: md_5 <git@md-5.net>
2016-04-08 19:06:31 +10:00
CraftBukkit/Spigot
1a22334d31 Support integer data values for Effect.VILLAGER_PLANT_GROW
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-06 12:26:49 +01:00
CraftBukkit/Spigot
863a77436f SPIGOT-2135: Also clear sit pathfinder on toggle status
By: md_5 <git@md-5.net>
2016-04-05 20:32:05 +10:00
CraftBukkit/Spigot
d7b8d8fdb9 SPIGOT-2128: Flint and steel duplicate place event
By: md_5 <git@md-5.net>
2016-04-04 17:18:01 +10:00
CraftBukkit/Spigot
d2f7c88b8d SPIGOT-2118: Fix crash on chunk regen
By: md_5 <git@md-5.net>
2016-04-04 17:15:02 +10:00
CraftBukkit/Spigot
d76c6e0cf4 SPIGOT-2092: Directly set sittging status
By: md_5 <git@md-5.net>
2016-04-04 17:09:57 +10:00
CraftBukkit/Spigot
22bfd9c3e9 SPIGOT-2115: Fix entities being added to the world multiple times when teleported
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-02 01:12:03 +01:00
CraftBukkit/Spigot
f3c514cf91 SPIGOT-2102: Don't reduce the movement limit below vanilla's default
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-01 23:19:55 +01:00
CraftBukkit/Spigot
b6c5393b22 Handle cases where Mojang uses an empty string for permission checks
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-01 22:58:20 +01:00
CraftBukkit/Spigot
911f7f5cf7 MC-100382: Fix Pathfinding Memory Leak
https://bugs.mojang.com/browse/MC-100382

A reference to a ChunkCache is never cleaned up after doing a pathfind operation,
resulting in leaking chunks. The leaked chunks then hold references to other
entities that may also be leaking ChunkCache's, creating a cascading problem.

By: Aikar <aikar@aikar.co>
2016-03-31 19:47:11 -04:00
CraftBukkit/Spigot
41e881d59f SPIGOT-2101: Check the result of damageEntity before applying knockback from sweep attacks
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-31 12:50:58 +01:00
CraftBukkit/Spigot
86e2c74429 SPIGOT-2098: Fix sound effects for 1.9.0 clients
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-31 11:34:47 +01:00
CraftBukkit/Spigot
f9ba5f4744 Fix the default permission of /trigger
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-31 00:50:39 +01:00
CraftBukkit/Spigot
17d7ca3bb4 Fix a diff mistake in MobEffectList
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-31 00:00:11 +01:00
CraftBukkit/Spigot
094f30f26d Update to Minecraft 1.9.2
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-30 20:50:59 +01:00
CraftBukkit/Spigot
8ea7bfcb8c Support Minecraft 1.9.2
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-30 16:51:22 +01:00
CraftBukkit/Spigot
19e357e11a Add 1.9.1 support.
By: md_5 <git@md-5.net>
2016-03-16 16:49:50 +11:00
CraftBukkit/Spigot
4fbcead283 SPIGOT-2033: Re-add missed diff for entity.valid
By: Aikar <aikar@aikar.co>
2016-03-28 20:19:29 -04:00
CraftBukkit/Spigot
5e00c79020 Limit the length of byte arrays
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-03-28 21:19:05 +01:00
CraftBukkit/Spigot
98e7045a09 SPIGOT-2074: Correctly set custom world settings
By: md_5 <git@md-5.net>
2016-03-28 12:28:12 +11:00
CraftBukkit/Spigot
f2440a109a Arrows use interactable condition
By: md_5 <git@md-5.net>
2016-03-27 20:58:45 +11:00
CraftBukkit/Spigot
eb3bbd68cc SPIGOT-2060: Method to control whether entities collide
By: md_5 <git@md-5.net>
2016-03-27 20:19:41 +11:00
CraftBukkit/Spigot
c165b940ae SPIGOT-2056: Fix killedByTeam scoreboard criteria
By: md_5 <git@md-5.net>
2016-03-27 11:11:15 +11:00