Commit graph

55 commits

Author SHA1 Message Date
CraftBukkit/Spigot
18496e998f Repackage patches
By: md_5 <git@md-5.net>
2021-03-16 09:00:00 +11:00
CraftBukkit/Spigot
373ed1ddd5 SPIGOT-5228: Entities that are removed during chunk unloads are not
properly removed from the chunk.

This could lead to dead entities accumulating in memory over time if the
chunk never gets fully unloaded (as it is the case for chunks around the
spawn region).

The issue is that Minecraft processes the removal of these entities
during the next tick, when the chunk has already switched to state
INACCESSIBLE and can no longer be retrieved as usual.

For the purpose of removing dead entities from their still loaded but no
longer accessible chunk, this adds and uses a new method with which a
chunk can be accessed without checking its current state first.

By: blablubbabc <lukas@wirsindwir.de>
2021-02-14 09:24:23 +11:00
CraftBukkit/Spigot
50503fd516 Update to Minecraft 1.16.1
By: md_5 <git@md-5.net>
2020-06-25 10:00:00 +10:00
CraftBukkit/Spigot
ecdda0bdbc #673: Fix Craftworld#isChunkLoaded
The flag for getChunkAt(int, int, ChunkStatus, boolean)
is actually a flag for whether to bring the underlying
PlayerChunk up to the required ticket level to load the
chunk. So, if the chunk is already at the required level,
but has not yet loaded, the call will actually either
start the load if it has not already been started and
block until completion.

This behaviour is not suitable for just
checking if the chunk is loaded.

By: Spottedleaf <Spottedleaf@users.noreply.github.com>
2020-06-06 19:23:46 +10:00
CraftBukkit/Spigot
e6566a0503 SPIGOT-5484: Add more spawn tick settings
By: Phoenix616 <mail@moep.tv>
2020-03-07 18:30:21 +01:00
CraftBukkit/Spigot
1705694b06 Craftbukkit -> CraftBukkit
By: md_5 <git@md-5.net>
2020-02-02 11:18:17 +11:00
CraftBukkit/Spigot
77b64e0c78 Update to Minecraft 1.15.2
By: md_5 <git@md-5.net>
2020-01-22 08:00:00 +11:00
CraftBukkit/Spigot
0e142c7f03 Update to Minecraft 1.15
By: md_5 <git@md-5.net>
2019-12-11 09:00:00 +11:00
CraftBukkit/Spigot
4460d122b3 SPIGOT-5225: World handle isn't closed if world is unloaded without saving
By: md_5 <git@md-5.net>
2019-07-29 16:36:51 +10:00
CraftBukkit/Spigot
a4b8e8ce68 Update to Minecraft 1.14.4
By: md_5 <git@md-5.net>
2019-07-20 09:00:00 +10:00
CraftBukkit/Spigot
75c992cac3 SPIGOT-4849: Fix server crash when accessing chunks during chunk load/unload/populate events
By: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2019-07-13 20:19:44 +02:00
CraftBukkit/Spigot
a8155d2399 Update to Minecraft 1.14.3-pre4
By: md_5 <git@md-5.net>
2019-06-21 20:00:00 +10:00
CraftBukkit/Spigot
569660215f Update to Minecraft 1.14.2
By: md_5 <git@md-5.net>
2019-05-28 06:30:00 +10:00
CraftBukkit/Spigot
e2b8949bf3 SPIGOT-4752: Fixed inconsistency between isChunkLoaded and chunk load/unload events
By: blablubbabc <lukas@wirsindwir.de>
2019-05-16 01:11:20 +02:00
CraftBukkit/Spigot
788fd7eedc Update to Minecraft 1.14.1
By: md_5 <git@md-5.net>
2019-05-14 10:00:00 +10:00
CraftBukkit/Spigot
badc255efc Update to Minecraft 1.14
By: md_5 <git@md-5.net>
2019-04-25 12:00:00 +10:00
CraftBukkit/Spigot
a0f2b74c8d Update to Minecraft 1.14-pre5
By: md_5 <git@md-5.net>
2019-04-23 12:00:00 +10:00
CraftBukkit/Spigot
3e70f09bdf SPIGOT-4563: Fix regenerating chunks saved to disk already
By: md_5 <git@md-5.net>
2019-01-03 15:44:06 +11:00
CraftBukkit/Spigot
d7e312278d Mappings Update
By: md_5 <git@md-5.net>
2018-12-26 08:00:00 +11:00
CraftBukkit/Spigot
102dee7d4f Mappings Update
By: md_5 <git@md-5.net>
2018-12-06 10:00:00 +11:00
CraftBukkit/Spigot
a194267323 Update to Minecraft 1.13.2
By: md_5 <git@md-5.net>
2018-10-23 06:00:00 +11:00
CraftBukkit/Spigot
686bbbbc2b SPIGOT-4397: isChunkGenerated API
By: md_5 <git@md-5.net>
2018-09-26 17:19:16 +10:00
CraftBukkit/Spigot
5d0094a169 Hoist out synchronisation from ChunkRegionLoader
By: md_5 <git@md-5.net>
2018-09-10 19:13:03 +10:00
CraftBukkit/Spigot
f578d94680 Update to Minecraft 1.13.1
By: md_5 <git@md-5.net>
2018-08-26 12:00:00 +10:00
CraftBukkit/Spigot
c3205e4e12 SPIGOT-4137: Fix World.regenerateChunk
By: md_5 <git@md-5.net>
2018-07-25 19:32:06 +10:00
CraftBukkit/Spigot
7e0a66fdd5 Update to Minecraft 1.13-pre7
By: md_5 <git@md-5.net>
2018-07-15 10:00:00 +10:00
CraftBukkit/Spigot
10a070d7a2 SPIGOT-3883: Better reloading of pending unload chunks
By: md_5 <git@md-5.net>
2018-04-04 16:12:32 +10:00
CraftBukkit/Spigot
40c8954e17 Update to Minecraft 1.12-pre2
By: md_5 <git@md-5.net>
2017-05-14 12:00:00 +10:00
CraftBukkit/Spigot
0f12ccbdba Drop RegionFile.chunkExists() in favour of Mojang's own version
By: Geoff Crossland <gcrossland+bukkit@gmail.com>
2017-01-31 23:52:21 +00:00
CraftBukkit/Spigot
4e412ab4e3 Update to Minecraft 1.11
By: md_5 <git@md-5.net>
2016-11-17 12:41:03 +11:00
CraftBukkit/Spigot
3aa2d8025a Simplify a few diffs
By: md_5 <git@md-5.net>
2016-07-15 20:08:04 +10:00
CraftBukkit/Spigot
b38424139e SPIGOT-113: Add save status to ChunkUnloadEvent
By: md_5 <git@md-5.net>
2016-07-11 21:10:56 +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
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
a39b7e5f3a Update to Minecraft 1.10
By: md_5 <git@md-5.net>
2016-06-09 11:43:49 +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
4d42c823d2 SPIGOT-2282: Get loaded chunk
By: md_5 <git@md-5.net>
2016-05-15 22:14:47 +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
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
77b2d0456e SPIGOT-2014: Respect the spectatorsGenerateChunks gamerule
By: Thinkofname <thinkofdeath@spigotmc.org>
2016-04-20 11:00:35 +01:00
CraftBukkit/Spigot
52a2a37b2f SPIGOT-1626 / MC-98994: Fix slow chunk performance
Please see https://bugs.mojang.com/browse/MC-98994 for full explanation.

By: md_5 <git@md-5.net>
2016-03-05 18:50:38 +11:00
CraftBukkit/Spigot
4ce5743996 SPIGOT-1659: Fix a mistake in ChunkProviderServer that sometimes caused recursive chunk loads
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2016-03-02 21:27:49 +00:00
CraftBukkit/Spigot
21d4bf5d1f Update to Minecraft 1.9
By: md_5 <git@md-5.net>
2016-03-01 08:32:46 +11:00
CraftBukkit/Spigot
58abe21c5a [SPIGOT-946] Begin making use of access transforms to simplify patching.
By: md_5 <git@md-5.net>
2015-06-06 19:33:48 +10:00
CraftBukkit/Spigot
6c1c28bd14 Cut fluff from patch headers.
By: md_5 <git@md-5.net>
2015-05-25 20:37:24 +10:00
CraftBukkit/Spigot
c52ea50ad9 SPIGOT-729: Revert the entity slice move
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-03-22 19:01:30 +00:00
CraftBukkit/Spigot
605de3306b SPIGOT-705: Fix possible CME
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-03-15 21:38:05 +00:00
CraftBukkit/Spigot
85be409b13 Update to Minecraft 1.8.3
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-02-26 22:41:06 +00:00