Commit graph

1627 commits

Author SHA1 Message Date
md_5
047b6f86bc SPIGOT-5421: Add separate trident despawn rate 2019-12-14 10:40:44 +11:00
md_5
c1047ed90c SPIGOT-5445: Add log-villager-deaths option 2019-12-14 10:27:25 +11:00
md_5
f39a89ef2d SPIGOT-5423: Remove covariant type change to give better chance of Java downgrades working 2019-12-11 14:55:57 +11:00
md_5
530f6689ba Update to Minecraft 1.15 2019-12-11 09:00:00 +11:00
md_5
56f84710b8 Rebuild patches 2019-10-18 20:03:04 +11:00
md_5
94af569b99 SPIGOT-5319: Async catcher for getNearbyEntities 2019-09-11 18:20:14 +10:00
md_5
065a3734e8 Rebuild patches 2019-08-28 19:53:13 +10:00
md_5
a596182627 SPIGOT-5286: tick-inactive-villagers invokes the AI for NoAI villagers 2019-08-26 19:18:52 +10:00
Spottedleaf
798ea6ab89 Add async catcher to World#save 2019-08-13 22:10:55 +10:00
Spottedleaf
ea7e48b3e6 Add string default for view distance, and API to retrieve per world 2019-08-08 20:48:55 +10:00
md_5
e5b1b5dbb1 SPIGOT-5235: Destroy expired area effect clouds / fireworks that are inactive 2019-08-02 19:23:10 +10:00
Spottedleaf
cbcc8e8720 Make region files more reliable to write to
Previously we would write to header before writing our chunk data,
which opens a window for corruption (or we would overwrite entirely).
Now the saving process has been changed to follow this chain of events:

1. We always allocate a new space to write so we do not potentially
overwrite and corrupt the current data
2. Write the chunk data first (the order of the fields in
the chunk data isn't relevant though)
3. Flush to disk (if the launch flag is used)
4. Write to the region header last
5. Flush to disk (if the launch flag is used)
6. Then we free the previous space allocated

With this chain of events it is impossible for a chunk write to corrupt
a region file, unless the operating system has messed around with the order
of our writes or if it has lied about us flushing (if applicable).

However server administrators are still recommended to continue performing
regular backups.

If the spigot.flush-on-save startup flag is set to true, then the
steps 3 and 5 will make a call to sync() on the region file's fd,
effectively flushing to disk. For people running on harddrives this
is not recommended since you will incur a very significant performance
hit. As such the option is disabled by default.
2019-08-01 21:01:24 +10:00
md_5
8887c5f4bc Remove redundant late-bind option 2019-07-30 20:52:01 +10:00
md_5
dac29063a7 Rebuild patches 2019-07-30 20:50:28 +10:00
md_5
1981d553d1 SPIGOT-5198: Catch more bad async operations 2019-07-23 09:48:32 +10:00
md_5
6a14ca46a9 Rebuild patches 2019-07-22 16:13:11 +10:00
md_5
9de398a170 Update to Minecraft 1.14.4 2019-07-20 09:00:00 +10:00
Spottedleaf
9a643a6af5 Remove DataWatcher Locking
The lock in DataWatcher is used to prevent concurrent modifications,
however any modifications to this map only occur on initialization of
an Entity in its constructor.

Every other access is through a readlock, which allows the threads to
pass if there is no thread holding the writelock.

Since the writelock is only obtained in the constructor of the Entity,
the further readlocks are actually useless.

This patch also changes the entries map to be fastutil
int2objectopenhashmap for performance.
2019-07-14 15:05:26 +10:00
md_5
5e4e7f32bc BUILDTOOLS-471: Rebuild patches 2019-07-11 08:18:03 +10:00
md_5
6e94473992 SPIGOT-5159: Raider activation range overridden by Monster range 2019-07-10 10:11:27 +10:00
md_5
d05d3c1f87 Rebuild patches 2019-07-03 10:30:37 +10:00
md_5
935adb34f0 SPIGOT-5088: Additional growth modifiers 2019-06-29 16:45:44 +10:00
md_5
595711b0a7 Correct pom.xml version 2019-06-25 20:57:24 +10:00
md_5
4d2f30f1be Update to Minecraft 1.14.3 2019-06-25 06:49:54 +10:00
md_5
f16400e3c6 Update to Minecraft 1.14.3-pre4 2019-06-21 20:00:00 +10:00
md_5
df0eb250ce SPIGOT-5043: Desync if world is changed in PlayerSpawnLocationEvent 2019-06-08 20:28:57 +10:00
md_5
0627955a22 Rebuild patches 2019-06-08 19:53:26 +10:00
md_5
baafee9142 Rebuild patches 2019-06-02 19:56:20 +10:00
md_5
01d0f0464a SPIGOT-4986: EntityActivationRange - Raiders 2019-05-29 19:49:51 +10:00
md_5
ffe694746d SPIGOT-4988: Setting "mob-spawn-range" in spigot.yml also effects random block ticks 2019-05-29 19:39:32 +10:00
md_5
093165d1b5 Update to Minecraft 1.14.2 2019-05-28 06:30:00 +10:00
md_5
4f661b226f Rebuild patches 2019-05-19 12:21:25 +10:00
md_5
8043ebcb9a Update to Minecraft 1.14.1 2019-05-14 10:00:00 +10:00
md_5
c8d4cefbbd SPIGOT-4915: Restarting on crash not working 2019-05-13 16:53:48 +10:00
md_5
f8e1ae2e26 SPIGOT-4912: Timings Viewer Shows Entities as / 0 (inf%) 2019-05-12 11:39:46 +10:00
md_5
71771d68b2 Rebuild patches 2019-05-12 11:18:39 +10:00
md_5
1eece4fcb4 Rebuild patches 2019-04-30 21:46:22 +10:00
md_5
c529d437fb SPIGOT-4817: View distance default should be read from server.properties not spigot.yml 2019-04-30 12:16:33 +10:00
md_5
4d24e36dd8 Rebuild patches 2019-04-28 11:41:06 +10:00
md_5
0da6fe20a5 SPIGOT-4788: Per world view distance causes chunks to glitch 2019-04-28 10:49:15 +10:00
md_5
e4be9b02e7 Rebuild patches 2019-04-27 16:09:31 +10:00
md_5
fa078785ca Rebuild patches 2019-04-27 10:30:04 +10:00
md_5
47463c251a Rebuild patches 2019-04-26 16:59:36 +10:00
md_5
766dab2a11 Rebuild patches 2019-04-26 09:17:10 +10:00
md_5
0c02b0ca0f Rebuild patches 2019-04-25 15:38:41 +10:00
md_5
f96d8c3d3e Rebuild patches 2019-04-25 14:39:43 +10:00
md_5
066994b8ae Update to Minecraft 1.14 2019-04-25 12:00:00 +10:00
md_5
f2180d5e7b SPIGOT-4731: EntityVillager ticks seems to cause tps drop 2019-04-25 10:16:25 +10:00
md_5
dc58fe42fe Rebuild patches 2019-04-24 10:30:28 +10:00
md_5
58d1508838 Rebuild patches 2019-04-24 10:12:26 +10:00