Commit graph

5130 commits

Author SHA1 Message Date
Mariell
03ce97a3cc BukkitValues was renamed ChunkBukkitValues (#4664)
I blame cat!
2020-10-17 22:53:51 +02:00
Mariell
2d4ed8726c Updated Upstream (CraftBukkit) (#4663) 2020-10-17 22:42:18 +02:00
Shane Freeder
f2a3a8db27 Fix SafeNBTCopy#hasKey semantics
Fixes hasKey to check that a key actually exists, while retaining the
option to scream at keys which are requested which haven't been marked as
needing to be copied
2020-10-17 12:46:35 +01:00
Shane Freeder
2942a2d247 Don't assume that entries exist for SafeNBTCopy 2020-10-17 12:20:44 +01:00
Mariell
db28a6b208 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#4659)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
01e22e09 Misc maven build updates
746f5324 #556: Allow sending messages from specific UUIDs
92b99cde #501: Add PersistentDataHolder to Chunk

CraftBukkit Changes:
4ef13f94 Misc maven build updates
04639f5a #759: Allow sending messages from specific UUIDs
77c894a2 #672: Add PersistentDataHolder to Chunk

Spigot Changes:
57bbdd8e Rebuild patches

Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
2020-10-17 12:39:45 +02:00
Shane Freeder
7391a61447 Revert "Updated Upstream (Bukkit/CraftBukkit/Spigot)"
This reverts commit d833a4aeef.
2020-10-17 10:48:00 +01:00
Shane Freeder
d833a4aeef Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
01e22e09 Misc maven build updates
746f5324 #556: Allow sending messages from specific UUIDs
92b99cde #501: Add PersistentDataHolder to Chunk

CraftBukkit Changes:
4ef13f94 Misc maven build updates
04639f5a #759: Allow sending messages from specific UUIDs
77c894a2 #672: Add PersistentDataHolder to Chunk

Spigot Changes:
57bbdd8e Rebuild patches
2020-10-17 09:18:39 +01:00
Automated
2c440dbc39 [Auto] Updated Upstream (Bukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
9165c3c0 SPIGOT-6188: Javadoc typo on SkullMeta getOwner()
2020-10-17 02:42:05 -04:00
stonar96
16d779960b Anti Xray: Obfuscate blocks touching lava feature (#3311) 2020-10-16 23:08:33 +02:00
dependabot[bot]
d4b6e902d1 [CI-SKIP] Update JUNit on Mojang API to make dependendabot happy
Pretty insignificant bug.
2020-10-14 20:00:28 -04:00
Mariell Hoversholm
478597ea05 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
e461dcfe #555: Item - add getters/setters for owner/thrower

CraftBukkit Changes:
055870c4 #758: Item - add getters/setters for owner/thrower
2020-10-14 16:00:43 +02:00
Aurora
b14059a5a1 Update discord link in the paper.yml (#4646) 2020-10-14 03:37:34 +02:00
Automated
d2a8cfa030 [Auto] Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
b45a7eed #554: PoweredMinecart - add getter/setter for fuel

CraftBukkit Changes:
29dd68eb9 #757: PoweredMinecart - add getter/setter for fuel
2020-10-13 04:17:09 -04:00
Spottedleaf
cccb35da1a Reduce blockpos allocation from pathfinding 2020-10-11 19:51:10 -04:00
Spottedleaf
ae00aa1ee4 Retain block place order when capturing blockstates
Fixes twisted vines not connecting properly when grown via
bonemeal by a player.

In general, look at making this logic more robust (i.e properly handling
cases where a captured entry is overriden) - but for now this will do.
2020-10-11 19:32:08 -04:00
Spottedleaf
016ecf57ac Improve inlinig for some hot IBlockData methods 2020-10-11 19:18:27 -04:00
Spottedleaf
cb129f90fa Optimise getType calls
Remove the map lookup for converting from Block->Bukkit Material
2020-10-11 18:52:57 -04:00
Spottedleaf
32aa63f5ed Fix for large move vectors crashing server
Check movement distance also based on current position.
2020-10-11 18:48:05 -04:00
ForceUpdate1
bffa3708e8 Fix distance in checkHighPriorityChunks (Fixes #4582) (#4605) 2020-10-12 00:24:06 +02:00
Aikar
6932cf79b5 Reset Ender Crystals on Dragon Spawn - Fixes #3522
Crystals can end up in a bad state in certain conditions which causes
an exception on the expected number of crystals going negative.

This ensures the crystals/pillars are in expected state when the dragon spawns.
2020-10-11 16:11:57 -04:00
chickeneer
024f4f2fce MC-147729: Drop items that are extra from a crafting recipe 2020-10-11 13:47:45 -04:00
Aikar
976c295514 Improve Priority handling of neighbor chunks
Restores vanilla like behavior where neighbor chunks have less priority than the source chunk.

This resolves the issue where teleporting sometimes has the chunk your arriving in slow to send.

Also improves light tasks to always process tasks when tasks from the current priority level are collected
instead of bundling them.
2020-10-08 01:07:10 -04:00
Automated
d793efc858 [Auto] Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
2a3ca137e SPIGOT-6175: Fix generating loot tables for entities
2020-10-10 19:32:19 -04:00
Jason Penilla
79106fd44b Fix CME when adding a passenger during Spawn events (#4616) 2020-10-04 20:46:18 -07:00
Aikar
6444280b12 Fix "Not a string" Map Conversion spam - Fixes #3901
The maps did convert successfully, but had noisy logs due to Spigot
implementing this logic incorrectly.

This stops the spam by converting the old format to new before
requesting the world.
2020-10-08 00:02:03 -04:00
Aurora
89e42fccc4 Clarify the JavaDocs for Entity.getEntitySpawnReason() in response to #4361 2020-10-03 16:31:23 +02:00
Aurora
7e9b1e620c Remove unnecessary space for provided plugins, fixes #4608 2020-10-03 21:27:35 +02:00
William Blake Galbreath
2defac165a Fix deop kicking non-whitelisted player when white list is not enabled 2020-10-03 22:04:14 -05:00
Mariell
5bdf0f1b1a Updated Upstream (CraftBukkit) (#4622)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
1f4693a8 SPIGOT-6168: Fix error with Player.getBedSpawnLocation when world is unloaded while server running
2020-10-06 15:59:35 +02:00
Mariell
eb2557d9ac Add a missing return in Eigencraft redstone (#4621) 2020-10-05 18:03:41 +02:00
BillyGalbreath
331d1ed71c Entity#isTicking (#4612) 2020-10-03 22:05:33 -05:00
Mariell Hoversholm
5cd73bbd5a Update Paperclip; use mvn.cmd on Windows (jmanpenilla) 2020-10-03 10:15:44 +02:00
Kev
944b03edc8 [CI-SKIP] Fix typo in CONTRIBUTING.md 2020-10-03 18:07:31 +02:00
Andrew Steinborn
ac051139a8 Lazily track plugin scoreboards by default
On servers with plugins that constantly churn through scoreboards, there is a risk of degraded GC performance due to the number of scoreboards held on by weak references. Most plugins don't even need the (vanilla) functionality that requires all plugin scoreboards to be tracked by the server. Instead, only track scoreboards when an objective is added with a non-dummy criteria.

This is a breaking change, however the change is a much more sensible default. In case this breaks your workflow you can always force all scoreboards to be tracked with settings.track-plugin-scoreboards in paper.yml.
2020-10-03 04:47:01 -04:00
Automated
0e942922ab [Auto] Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
aa8206a85 SPIGOT-6130: Fix API loot table generation with certain contexts
2020-10-02 20:51:53 -04:00
Automated
ee2fe182bb [Auto] Updated Upstream (Spigot)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Spigot Changes:
988b4119 SPIGOT-6164: Allow disabling all advancements in a namespace
2020-10-02 20:27:08 -04:00
Mariell Hoversholm
ae82e7eb1c Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
5c77bd28 SPIGOT-6147: InventoryCloseEvent does not fire after closing player inventory
2020-10-01 15:16:32 +02:00
Mariell
cc79d358e8 [CI-SKIP] Make travis use 'build' instead of 'patch' (#4592)
Closes #4277.
2020-09-30 22:19:02 +02:00
Mariell Hoversholm
e3bbc0d3ec Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
5da21f87 SPIGOT-6152: End exit gates in custom ends do not send back to overworld
1ee373fe SPIGOT-6157: Crash when PortalCreateEvent cancelled
2020-09-30 21:12:34 +02:00
MeFisto94
28be3aae37 Expose the Entity Counter to allow plugins to use valid and non-conflicting Entity Ids 2020-08-28 01:44:21 +02:00
Mariell Hoversholm
6fea984629 Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
a339310c #755: Fix NPE when calling getInventory() for virtual EnderChests
2577f9bf Increase outdated build delay
1dabfdc8 #754: Fix pre-1.16 serialized SkullMeta being broken on 1.16+, losing textures
2020-09-27 16:52:40 +02:00
Mariell Hoversholm
f26dc668ae Patch SPIGOT-6086 for all invalid locations
md_5's patch for SPIGOT-6086 only applies to locations over the world,
not those under or outside it.
2020-09-27 16:32:04 +02:00
Aikar
22d50756e9 Revert "Only consider chunks Loaded if at BORDER status"
This reverts commit 7968c4f5c9.

Issues have been found post merge that sadly no one discovered during test builds.
Reverting for now until we can identify the issue and do another test round.
2020-09-21 22:12:28 -04:00
Mariell Hoversholm
fc0dafdc58 Prevent fire from spreading to invalid locations 2020-09-21 20:40:48 +02:00
Aikar
9f27271254 Light improvements
Trying to solve random hangs we've seen, ensuring that this part of code isnt the culprit

also fixing a vanilla bug reportedby PhiPro where tickets are released too early
hoping this reduces amount of incorrect light issues.
2020-09-19 14:04:25 -04:00
Aikar
97b9071852 Preserve initial velocity of spawned entities - Fixes #4292 2020-09-19 13:19:34 -04:00
Aikar
0aa0eba111 Optimize some methods for inlining
Adds final to some methods to improve inlining ability
2020-09-19 11:51:01 -04:00
Aikar
7968c4f5c9 Only consider chunks Loaded if at BORDER status
This greatly improves performance as it drastically reduces the amount
of Entities and Tile Entities that are "registered" into the world, as
purely "cached" chunks will no longer have their entities hanging out in the world.

Additionally this fixes our Entity Add To World and Entity Remove From World events

Those events have not been firing correctly since MC changed how chunks work here.

Now the server will only consider a chunk "loaded" if it's got a ticket putting
it at level 33 or lower, which matches the public Bukkit API.
2020-09-12 22:24:48 -04:00
Shane Freeder
9c1e6eab19 Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
ccb9614e #548: LivingEntity - add methods for getting/setting invisibility

CraftBukkit Changes:
f8d4da08 #743: LivingEntity - add methods for getting/setting invisibility

Spigot Changes:
17d78dbd Rebuild patches
2020-09-19 12:29:53 +01:00
Automated
875d0516d1 [Auto] Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

CraftBukkit Changes:
da9bb3ea9 #753: RecipeIterator#hasNext will now accurately represent if the current iterator has a next item.
2020-09-18 04:52:15 -04:00