Commit graph

1864 commits

Author SHA1 Message Date
md_5
33ea98fc42
SPIGOT-5858: NPE: Joining the server with an invalid dimension 2020-06-28 08:48:57 +10:00
md_5
6f4ff1b691
SPIGOT-5851: ChatColor (HEX) doesn't appear correctly in the ActionBar 2020-06-27 08:43:36 +10:00
md_5
d94a518a86
SPIGOT-5848: PlayerSpawnLocationEvent throws NPE when setting a location of another world 2020-06-27 08:37:20 +10:00
md_5
16d78990fe
Rebuild patches 2020-06-26 19:18:18 +10:00
md_5
8fc58f10ab
Rebuild patches 2020-06-26 09:19:30 +10:00
md_5
94b0c0cc00
SPIGOT-5813: Trying to load a flat world causes server to crash 2020-06-26 09:05:37 +10:00
md_5
758abbeee4
Update to Minecraft 1.16.1 2020-06-25 10:00:00 +10:00
md_5
a99063f771 Rebuild patches 2020-06-06 19:28:03 +10:00
md_5
2f5d615f15 SPIGOT-5730: Modernise inventory patch 2020-05-09 19:41:03 +10:00
md_5
a2bdb11986 SPIGOT-5679: Add config option for end portal activation sound 2020-05-09 18:48:11 +10:00
md_5
2040c4c476 SPIGOT-5677, MC-114796: Fix portals generating outside world border 2020-04-22 12:05:11 +10:00
md_5
ab8f6b5af2 Rebuild patches 2020-04-22 11:50:25 +10:00
md_5
e7dc2f5347 Rebuild patches 2020-04-14 12:42:02 +10:00
md_5
ae72bf43fd SPIGOT-5666: Customizable End City Seed 2020-04-10 10:53:40 +10:00
md_5
a03b1fdbaf Rebuild patches 2020-03-24 19:55:39 +11:00
md_5
6de3d4be46 Rebuild patches 2020-03-08 19:40:51 +11:00
md_5
8faa8b45b4 Rebuild patches 2020-02-20 09:26:22 +11:00
md_5
c574e08b71 Rebuild patches 2020-02-02 19:37:22 +11:00
md_5
13c24cc4a5 Rebuild patches 2020-02-02 11:20:00 +11:00
md_5
b9baf71774 Add space before ocean seed output 2020-01-31 07:51:54 +11:00
md_5
13394884fa Rebuild patches 2020-01-29 16:45:23 +11:00
md_5
f2c1cd15d9 Rebuild patches 2020-01-28 09:50:23 +11:00
md_5
bcd458ad9b Reformat patches 2020-01-24 17:56:32 +11:00
md_5
800b93fb8c Rebuild patches 2020-01-22 09:18:13 +11:00
md_5
652756fb41 Update to Minecraft 1.15.2 2020-01-22 08:00:00 +11:00
md_5
037559e7b4 Rebuild patches 2020-01-13 10:27:31 +11:00
md_5
492a779218 Rebuild patches 2019-12-25 10:13:37 +11:00
Hex
05bb8bcfea Postpone stopping the watchdog until the server is completely stopped 2019-12-23 10:30:00 +11:00
md_5
18e2b9bed7 Add package-info.java for Spigot APIs 2019-12-22 10:00:03 +11:00
md_5
2ee05fef19 Update to Minecraft 1.15.1 2019-12-18 08:00:00 +11:00
md_5
3b314f5953 SPIGOT-5459: Add minecraft.debugstick.always permission to allow use in survival etc 2019-12-17 12:27:25 +11:00
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