Commit graph

639 commits

Author SHA1 Message Date
Nassim Jahnke
714dbcc8e2 Fix plugin provides load order (#6687) 2021-10-01 12:53:24 +02:00
thamid-gamer
a1e5453e61 Use null for null resource pack prompts (#6572) 2021-09-30 20:56:22 -04:00
Owen1212055
5d7651e1b8 Update head rotation in missing places (#5481) 2021-09-30 20:50:00 -04:00
thamid-gamer
2b0d4da807 Make Levels Use Correct Spawn Settings (#6419) 2021-09-30 20:46:37 -04:00
Lexi
88b2f00a03 Preserve overstacked loot (#5943) 2021-09-30 20:39:17 -04:00
Jake Potrebic
7f7961ea23 Improve ItemStack#editMeta (#6502) 2021-09-30 17:32:25 -07:00
Jake Potrebic
150389bf71 More CommandBlock API (#5746) 2021-09-30 14:28:02 -07:00
Jason Penilla
4ee912fbfd Fix click event when vanilla scoreboard name coloring is enabled (#6652) 2021-09-30 13:33:19 -05:00
Jake Potrebic
1264c08ef8 Option to prevent NBT copy in smithing recipes (#6671) 2021-09-30 11:27:25 -07:00
Jason Penilla
019c768488 Fix stacktrace deobf where thrownProxy got initialized before rewriting (#6684) 2021-09-30 13:05:51 -05:00
booky10
e3ec51968c Fix nullability on Block#breakNaturally (#6651) 2021-09-30 19:42:44 +02:00
Jake Potrebic
7e3620fce5 Suggest PlayerPostRespawnEvent if changing player state (#6679) 2021-09-29 11:55:34 -07:00
Jason Penilla
bcf4a2e70d Fix jline relocation (#6677) 2021-09-29 11:34:16 -05:00
Shane Freeder
3f3377a1eb Revert "Legacy data should look for legacy materials (Fixes #6618)" (Fixes #6664)
This reverts commit 3ce522545b.
2021-09-29 03:12:40 +01:00
Nassim Jahnke
7a09beac96 Ensure valid vehicle status (#6673) 2021-09-28 10:24:25 +02:00
Jake Potrebic
e62fd64c62 Fix player death kept items not being in same slot (#6663) 2021-09-25 12:06:37 -07:00
Gaider10
90cb93d691 Fix interaction pos in range check (#6654) 2021-09-24 11:02:14 +03:00
Kezz
cff53e785d Adventure 4.9.1 (#6634)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-09-23 22:07:44 +01:00
Jake Potrebic
7df16b7b62 fixes cancelling PlayerTradeEvent (#5612) 2021-09-22 21:10:35 -07:00
Jake Potrebic
3212afeed6 Fix anvil inventory events (#6157) 2021-09-22 15:52:43 -07:00
Bjarne Koll
403d07e954 Apply furnace cook speed multiplier through event (#6378)
Previously the upstream FurnaceStartSmeltEvent would default to the
recipes cooking time, ignoring any modifications from the furnace speed
multiplier.
While this works correctly for upstream, paper introduces the speed
multiplier API, which allows a different cook time from the one provided
by the recipe.

This commit now passes the modified cooktime to the furnace start smelt
event explicitly, instead of allowing the event to default to the
recipes cooking time, thus ensuring that the speed modifier is
respected.

Resolves: #6376
2021-09-22 21:46:15 +02:00
Jake Potrebic
7ab005b9c2 Add more component name methods (#6578) 2021-09-22 11:34:40 -07:00
Jake Potrebic
3e736b8525 Include slot when constructing the bukkit Attribute Modifiers (#6537) 2021-09-22 10:48:03 -07:00
Jake Potrebic
bf6067cabf Fix upstreams fix for composters and variable hoppers (#6563) 2021-09-22 10:40:45 -07:00
Jake Potrebic
ac4b9756ce Fix upstream nullability on entity equipment getters (#6519) 2021-09-22 10:23:21 -07:00
Nassim Jahnke
35ff5adaa2 Fix axolotl/fish persistence
Fixes #6643
2021-09-22 13:40:13 +02:00
Jake Potrebic
baca7d3685 Mark fish and axolotls from buckets as persistent (#6392) 2021-09-21 21:59:19 -07:00
Jake Potrebic
28bc1df590 Implement Translatable on villager Profession (#6542) 2021-09-21 21:45:01 -07:00
Maddy Miller
9b68f27212 [ci skip] Update my name in author field (#6625) 2021-09-20 19:30:04 +10:00
Shane Freeder
3ce522545b Legacy data should look for legacy materials (Fixes #6618) 2021-09-17 09:35:02 +01:00
cs8425
49fabba8b5 fix per-player-mob-spawns cause total limit cap by Bukkit's spawn limit (#6574) 2021-09-17 08:40:34 +08:00
Jason Penilla
667baeed68 Fix global limit display for MISC mob category (#6612) 2021-09-16 16:40:11 -05:00
PureGero
76a6ed89c7 Fix tick rates map being stored with upper case values instead of lower case (#6587) 2021-09-15 17:03:09 +10:00
Jason Penilla
0767b6966e Fix log message formatting when classes not owned by plugins use sysout (#6604) 2021-09-14 12:23:56 -05:00
Noah van der Aa
054854471c Don't log if debug logging isn't enabled. (#6603) 2021-09-14 16:44:06 +02:00
Nassim Jahnke
54cfbcd139 Hide feature seeds in Timings 2021-09-14 15:31:45 +02:00
Nassim Jahnke
325ba14ca5 Improve interact distance check (#6591) 2021-09-11 22:18:44 +02:00
Nassim Jahnke
0d34a95f8f Updated Upstream (Bukkit/CraftBukkit) (#6589)
Upstream has released updates that appear 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:
44cfe143 SPIGOT-6249: Add Missing Effect Constants

CraftBukkit Changes:
14928261 SPIGOT-6249: Add Missing Effect Constants
332335e1 SPIGOT-6731: "Nag author" message in CraftServer lists one author only
6cd975d0 SPIGOT-5732, SPIGOT-6387: Overhaul Hanging entities
2021-09-11 19:27:48 +02:00
Finn Künstner
e50f4aef68 [ci skip] Fix typos in Paper comments (#6588)
* //Paper -> // Paper

* // Tuiniy -> // Paper
2021-09-11 13:22:51 +03:00
Jason Penilla
d3dab2f22c Remove method rename and fix reobf for Goal#getFlags (#6528) 2021-09-09 12:12:22 -05:00
Jason Penilla
df51228b73 Fix VanillaGoals when in reobfuscated environment (#6580) 2021-09-09 11:57:16 -05:00
Spottedleaf
36e77c4c63 Do not create nether portals that delete undestroyable blocks
Fixes https://github.com/PaperMC/Paper/issues/5773
2021-09-07 15:10:48 -07:00
Shane Freeder
92c68e2367 Fixup enderpearl patch 2021-09-07 22:33:28 +01:00
Shane Freeder
eca2f8fdd0 Fix CocaoDecorator causing a crash during generation (Fixes #6028) 2021-09-07 21:41:54 +01:00
Omer Uddin
36a14149e6 Disable enderpearls when they hit non-ticking chunk if disableEnderpearlExploit is enabled 2021-01-28 20:32:58 -05:00
Jason Penilla
d1043a7236 Add '/paper mobcaps' and '/paper playermobcaps' commands (#6470)
Add commands to get the mobcaps for a world, as well as the mobcaps for
each player when per-player mob spawning is enabled.

Also has a hover text on each mob category listing what entity types are
in said category
2021-09-05 16:29:02 -05:00
Nassim Jahnke
1d26ff2269 Use BlockPost#atY in end portal softlock fix 2021-09-03 20:14:29 +02:00
Noah van der Aa
3436b6780a Prevent softlocked end exit portal generation (#6525) 2021-09-03 20:05:01 +02:00
Nassim Jahnke
48d72eb439 Remove "Auto fix bad Y levels on player login" patch
Fixes #6357
Closes #6508
Closes #6358
2021-09-03 19:57:21 +02:00
Jake Potrebic
4433d23cc1 Prevent an infinite recursion error while rendering translatables (Fixes #6551) (#6555) 2021-09-03 10:01:05 -07:00
Shane Freeder
20e45f7315 Do not process entity loads in CraftChunk#getEntities (Fixes #6543)
This re-introduces the issue behind #5872 but fixes #6543
The logic here is generally flawed however somewhat of a nuance,
upstream uses managedBlock which is basically needed to process
the posted entity adds, but, has the side-effect of processing any
chunk loads which has the naunce of stacking up and either causing a
massive performance hit, or can potentially lead the server to crash.

This issue is particularly noticable on paper due to the cumulative efforts
to drastically improve chunk loading speeds which means that there is much more
of a chance that we're about to eat a dirtload of chunk load callbacks, thus
making this issue much more of an issue
2021-09-03 15:55:22 +01:00
Spottedleaf
3e7769feae Fixed layers from V2550 not being added to list (#6541)
Note from Spottedleaf:
Please note that this doesn't fix any problems using dataconverter
because dataconverter does not re-route world gen settings conversion.

Co-authored-by: Callum Seabrook <callum.seabrook@prevarinite.com>
2021-09-01 14:25:25 -07:00
Jake Potrebic
fa43132643 flattener should try to render custom translations (#6540) 2021-09-01 14:03:00 -07:00
Nassim Jahnke
8efc0a0cc6 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6539)
Upstream has released updates that appear 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:
ed7bba95 SPIGOT-6547: Chunk#getEntities() doesn't return all entities immediately after chunk load
d99a585c SPIGOT-6719: Add getTileEntities() to LimitedRegion

CraftBukkit Changes:
422cec08 Rebuild patch
15f27fc7 SPIGOT-6547: Chunk#getEntities() doesn't return all entities immediately after chunk load
cbd747af SPIGOT-6719: Add getTileEntities() to LimitedRegion

Spigot Changes:
6c1c1b26 Rebuild patches
2021-09-01 14:03:36 +02:00
Nassim Jahnke
8a37b1fc5f Configurable feature seeds (#6531)
Co-authored-by: Thonk 30448663+ExcessiveAmountsOfZombies@users.noreply.github.com

Also includes an option to auto-generate random seeds for all features and add them to the config.
2021-09-01 11:54:41 +02:00
Spottedleaf
25134061a8 Remove the old updatingChunks and visibleChunks fields (#6535)
Just in case they cause problems again.

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-08-31 19:33:14 -07:00
Jason Penilla
fbedd625a2 Always use updatingChunks for saveAllChunks (#6534) 2021-08-31 19:53:56 -05:00
Jason Penilla
887ccc412a Use updatingChunks for flush saving (#6533) 2021-08-31 19:23:22 -05:00
Nassim Jahnke
77026633f4 Fix distance map contains (#6530) 2021-08-31 14:47:00 +02:00
Spottedleaf
bc2890b955 Merge tuinity (#6413)
This PR contains all of Tuinity's patches. Very notable ones are:

- Highly optimised collisions
- Optimised entity lookups by bounding box (Mojang made regressions in 1.17, this brings it back to 1.16)
- Starlight https://github.com/PaperMC/Starlight
- Rewritten dataconverter system https://github.com/PaperMC/DataConverter
- Random block ticking optimisation (wrongly dropped from Paper 1.17)
- Chunk ticking optimisations
- Anything else I've forgotten in the 60 or so patches

If you are a previous Tuinity user, your config will not migrate. You must do it yourself. The config options have simply been moved into paper.yml, so it will be an easy migration. However, please note that the chunk loading options in tuinity.yml are NOT compatible with the options in paper.yml. 

* Port tuinity, initial patchset

* Update gradle to 7.2

jmp said it fixes rebuildpatches not working for me. it fucking better

* Completely clean apply

* Remove tuinity config, add per player api patch

* Remove paper reobf mappings patch

* Properly update gradlew

* Force clean rebuild

* Mark fixups

Comments and ATs still need to be done

* grep -r "Tuinity"

* Fixup

* Ensure gameprofile lastaccess is written only under the state lock

* update URL for dataconverter

* Only clean rebuild tuinity patches

might fix merge conflicts

* Use UTF-8 for gradlew

* Clean rb patches again

* Convert block ids used as item ids

Neither the converters of pre 1.13 nor DFU handled these cases,
as by the time they were written the game at the time didn't
consider these ids valid - they would be air. Because of this,
some worlds have logspam since only DataConverter (not DFU or
legacy converters) will warn when an invalid id has been
seen.

While quite a few do need to now be considered as air, quite a lot
do not. So it makes sense to add conversion for these items, instead
of simply suppressing or ignoring the logs. I've now added id -> string conversion
for all block ids that could be used as items that existed in the game
before 1.7.10 (I have no interest in tracking down the
exact version block ids stopped working) that were on
https://minecraft-ids.grahamedgecombe.com/

Items that did not directly convert to new items will
be instead converted to air: stems, wheat crops, piston head,
tripwire wire block

* Fix LightPopulated parsing in V1466

The DFU code was checking if the number existed, not if it
didn't exist. I misread the original code.

* Always parse protochunk light sources unless it is marked as non-lit

Chunks not marked as lit will always go through the light engine,
so they should always have their block sources parsed.

* Update custom names to JSON for players

Missed this fix from CB, as it was inside
the DataFixers class.

I decided to double check all of the CB changes again:

DataFixers.java was the only area I missed, as I had inspected all
datafixer diffs and implemented them all into DataConverter. I also
checked Bootstrap.java again, and re-evaluated their changes. I had
previously done this, but determined that they were all bad.

The changes to make standing_sign block map to oak_sign block in
V1450 is bad, because that's not the item id V1450 accepts. Only
in 1.14 did oak_sign even exist, and as expected there is a converter
to rename all existing sign items/blocks.

The fix to register the portal block under id 1440 is useless, as
the flattenning logic will default to the lowest registered id - which
is the exact blockstate that CB registers into 1440. So it just
doesn't do anything.

The extra item ids in the id -> string converter are already added,
but I found this from EMC originally.

The change for the spawn egg id 23 -> Arrow is just wrong,
that id DOES correspond to TippedArrow, NOT Arrow. As
expected, the spawn egg already has a dedicated mapping for
Arrow, which is id 10 - which was Arrow's entity id.

I also ported a fix for the cooked_fished id update. This doesn't
really matter since there is already a dataconverter to fix this,
but the game didn't accept cooked_fished at the time. So I see
no harm.

* Review all converters and walkers

- Refactor V99 to have helper methods for defining entity/tile
  entity types
- Automatically namespace all ids that should be namespaced.
  While vanilla never saved non-namespaced data for things that
  are namespaced, plugins/users might have.
- Synchronised the identity ensure map in HelperBlockFlatteningV1450
- Code style consistency
- Add missing log warning in V102 for ITEM_NAME type conversion
- Use getBoolean instead of getByte
- Use ConverterAbstractEntityRename for V143 TippedArrow -> Arrow
  rename, as it will affect ENTITY_NAME type
- Always set isVillager to false in V502 for Zombie
- Register V808's converter under subversion 1 like DFU
- Register a breakpoint for V1.17.1. In the future, all final
  versions of major releases will have a breakpoint so that
  the work required to determine if a converter needs a breakpoint
  is minimal
- Validate that a dataconverter is only registered for a version
  that is registered
- ConverterFlattenTileEntity is actually ConverterFlattenEntity
  It even registered the converters under TILE_ENTITY, instead of
  ENTITY.
- Fix id comparison in V1492 STRUCTURE_FEATURE renamer
- Use ConverterAbstractStatsRename for V1510 stats renamer
  At the time I had written that class, the abstract renamer didn't
  exist.
- Ensure OwnerUUID is at least set to empty string in
  V1904 if the ocelot is converted to a cat (this is
  likely so that it retains a collar)
- Use generic read/write for Records in V1946
  Records is actually a list, not a map. So reading map was
  invalid.

* Always set light to zero when propagating decrease

This fixes an almost infinite loop where light values
would be spam queued on a very small subset on blocks.

This also likely fixes the memory issues people were
seeing.

* re-organize patches

* Apply and fix conflicts

* Revert some patches

getChunkAt retains chunks so that plugins don't spam loads
revert mc-4 fix will remain unless issues pop up

* Shuffle iterated chunks if per player is not enabled

Can help with some mob spawning stacking up at locations

* Make per player default, migrate all configs

* Adjust comments in fixups

* Rework config for player chunk loader

Old config is not compatible. Move all configs to be
under `settings` in paper.yml

The player chunk loader has been modified to
less aggressively load chunks, but to send
chunks at higher rates compared to tuinity. There are
new config entries to tune this behavior.

* Add back old constructor to CompressionEncoder/Decoder (fixes
 Tuinity #358)

* Raise chunk loading default limits

* Reduce worldgen thread workers for lower core count cpus

* Raise limits for chunk loading config

Also place it under `chunk-loading`

* Disable max chunk send rate by default

* Fix conflicts and rebuild patches

* Drop default send rate again

Appears to be still causing problems for no known reason

* Raise chunk send limits to 100 per player

While a low limit fixes ping issues for some people, most people
do not suffer from this issue and thus should not suffer from
an extremely slow load-in rate.

* Rebase part 1

Autosquash the fixups

* Move not implemented up

* Fixup mc-dev fixes

Missed this one

* Rebase per player viewdistance api into the original api patch

* Remove old light engine patch part 1

The prioritisation must be kept from it, so that part
has been rebased into the priority patch.
Part 2 will deal with rebasing all of the patches _after_

* Rebase remaining patches for old light patch removal

* Remove other mid tick patch

* Remove Optimize-PlayerChunkMap-memory-use-for-visibleChunks.patch

Replaced by `Do not copy visible chunks`

* Revert AT for Vec3i setX/Y/Z

The class is immutable. set should not be exposed

* Remove old IntegerUtil class

* Replace old CraftChunk#getEntities patch

* Remove import for SWMRNibbleArray in ChunkAccess

* Finished merge checklist

* Remove ensureTickThread impl in urgency patch

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-08-31 04:02:11 -07:00
HexedHero
2a4afe1f6b Add MaterialTags for raw ores and raw ore blocks (#6516) 2021-08-30 15:55:11 +01:00
Jason Penilla
bd48009917 Undeprecate Enchantment#isCursed (#6524) 2021-08-30 09:49:28 -05:00
Jason Penilla
7fda985a9c [ci skip] Cleanup Timings v2 diff (#6523) 2021-08-30 02:02:24 -05:00
Jason Penilla
0294b31e13 Log error for invalid entity-per-chunk-save-limit configs (#6522) 2021-08-29 23:19:43 -05:00
Maddy Miller
e0125b21b7 Fix poor action helpers API name (#6518) 2021-08-29 17:20:14 +10:00
Maddy Miller
6f94f00f7b Add helpers for left/right hand to Action (#6517)
* Add helpers for left/right hand to Action

* Diff starts here technically
2021-08-29 16:29:36 +10:00
Nassim Jahnke
dc84fb336e Move ProtoWorld methods to LimitedRegion (#6486) 2021-08-28 15:43:26 +02:00
Jason Penilla
aa0de8d4b5 Fix and optimize legacy world conversion (#6473)
CraftBukkit breaks legacy world conversion in three ways:
- Writes userdata to the path of the userdata folder rather than to
  the correct file inside the aforementioned folder. This causes the
  userdata folder to fail to be created as a file already exists at
  its path.
- Makes changes to how multiworld works, without modifying
  McRegionUpgrader to be aware of these changes.
- Calls methods on Bukkit before the server is initialized.

This patch fixes all of these issues, and also threads the
McRegionUpgrader to improve performance.
2021-08-28 00:07:12 -05:00
Spottedleaf
6522a6eed1 Ensure priority updates are determined by current level, not deferred level (#6507)
* Ensure priority updates are determined by current level, not deferred level

Deferral could cause an infinite loop to occur.

Also, re-add the light engine priority logic.

* Rebase

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-08-27 19:20:31 -07:00
Owen1212055
0f34801f3d Add Missing Entity API: Cat (#5744) 2021-08-27 14:16:41 -04:00
Nassim Jahnke
cc4e273b07 Updated Upstream (CraftBukkit) (#6504)
Upstream has released updates that appear 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:
5be41fb8 SPIGOT-6720: Fix bed explosion checks
09b99daf SPIGOT-6722: Close entity manager when unloading world
3a9561bf SPIGOT-6686: Changes in MaximumRepairCost for Anvil Rename cause inconsistency
2021-08-27 11:51:18 +02:00
Jake Potrebic
7247c2b0ab Remove unneeded @ throws from team javadocs (#6491) 2021-08-26 12:56:31 -07:00
Jake Potrebic
17600721ea [ci skip] Remove this file that got created somehow (#6489) 2021-08-26 09:49:32 -07:00
Jason Penilla
b0d8230b5a [ci skip] Cleanup diff in Async command map building (#6492) 2021-08-26 11:41:22 -05:00
Nassim Jahnke
5ce32344db Sanitize ResourceLocation error logging (#6495) 2021-08-26 12:25:23 +02:00
Spottedleaf
882fe0543a Log when the async catcher is tripped (#6493)
The chunk system can swallow the exception given it's all
built with completablefuture, so ensure it is at least printed.

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-08-25 20:35:35 -07:00
Spottedleaf
4355a3ac96 Readd chunk priority patch, including many chunk system fixes from tuinity (#6488) 2021-08-25 19:16:27 -07:00
Jason Penilla
7a51a16318 Vanilla command permission fixes (fixes #6085) (#6490)
Fixes permission checks for vanilla commands which don't have a
requirement, as well as for namespaced vanilla commands.
2021-08-25 17:20:24 -05:00
Jason Penilla
3c13186e4e Use configured no permission message in PaperCommand (#6484) 2021-08-25 15:34:15 -05:00
Nassim Jahnke
502755d55a Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6457)
Upstream has released updates that appear 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:
c9a46ebf #653: Add World#spawn with randomizeData parameter
e49c2e3a Damageable should extend ItemMeta
01ff04f4 SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
ca5b4b1a SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles

CraftBukkit Changes:
7c8bbcbe SPIGOT-6716: Preserve the order of stored enchantments of enchanted books.
18027d02 #914: Add World#spawn with randomizeData parameter
3cad0316 SPIGOT-6714: Don't fire PlayerBucketEvent when empty
8c6d60cf Fix server crash with BlockPopulator when entities are at a negative chunk border
4f6bcc84 SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
78d5b35b SPIGOT-6697: Restore generateTree with BlockChangeDelegate behaviour
15792f0d Rebuild patch
c949675e SPIGOT-6713: Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn
a955f15c Fix issues with new ChunkGenerator API
a0a37f41 SPIGOT-6630: Replacing an enchantment on an item creates a conflict error

Spigot Changes:
b166a49b Rebuild patches
3c1fc60a SPIGOT-6693: Composters only take in one item at custom hopper speeds
2021-08-25 09:59:26 +02:00
Jake Potrebic
f53cb1b3fe Add BlockBreakBlockEvent (#4989) 2021-08-24 18:42:23 -07:00
Jason Penilla
dd35ae9fec Squash "Clear SyncLoadInfo" into "Add debug for sync chunk loads" and add tab completion for the clear argument (#6483) 2021-08-24 18:45:40 -05:00
Jake Potrebic
73b4c45a4a [ci skip] clean up diff from 1.17 update (#6462) 2021-08-24 16:30:26 -07:00
Jason Penilla
b2800ba2a9 Add GLOW_SQUID and AXOLOTL to WATER_BASED Tag (#6481) 2021-08-24 17:52:10 -05:00
Pedro
6e492e1b1c Fix bed explosions in custom worlds (#6345) 2021-08-24 16:03:58 -04:00
Jake Potrebic
78d3eda3db Fix CB lib relocation (#6454) 2021-08-22 10:22:57 -07:00
Jake Potrebic
7b08aa27ab Add API to change EnderEye target without other nonsense (#6460) 2021-08-22 08:19:42 -07:00
Jake Potrebic
b9871610d1 Prevent NPE when removing enchantment with no ItemMeta (#6459) 2021-08-22 08:13:51 -07:00
Jake Potrebic
9169cf73cc Better docs for PlayerGameModeChangeEvent (#6461) 2021-08-22 08:10:33 -07:00
Maddy Miller
92d1ace250 Fix BlockPistonRetractEvent firing multiple times (#6467) 2021-08-22 23:54:55 +10:00
MiniDigger | Martin
aa487a3e4c Fix Mob Goal Leak (#6394) 2021-08-22 06:19:45 +02:00
Octavia Togami
1291aa829a Replace ThreadLocal with ConcurrentHashMap in CommandSourceStack (#6325)
This object is created so often that it likely creates problems with the
ThreadLocalMap because the weak references can't be cleaned up fast
enough. This has manifest as lag seemingly caused by WorldEdit:
https://github.com/EngineHub/WorldEdit/issues/1668
2021-08-21 20:45:40 -07:00
Mariell Hoversholm
889718222e Add timeout & interval to sysout catcher (#6383) 2021-08-21 17:01:42 +02:00
Bjarne Koll
b868339208 Add deepslate as xray engine 2 replacement default (#6362)
Fixes: #6350
2021-08-21 14:34:58 +00:00
Noah van der Aa
7e5a053742 Respect despawn rate in merge check (#6428) 2021-08-21 16:32:07 +02:00
Jake Potrebic
b3c84b4e7d Add API to send game events (#6444) 2021-08-21 07:26:42 -07:00
petersv5
ebb3c9b96a Fix entities glitching through blocks pushed by pistons (#6308)
Fixes #5189
2021-08-21 16:15:29 +02:00
HexedHero
849bc22bdf Add note about EntityMoveEvent not firing for players (#6406) 2021-08-21 14:53:01 +01:00
Jason Penilla
5fb95dd824 Set AsyncAppender dispatch thread to be a daemon thread (#6424) 2021-08-18 13:47:29 -05:00
Jason Penilla
6216cdc4c2 Setup dev bundle publishing (#6163) 2021-08-17 17:11:04 -05:00
Shane Freeder
972fbb74c9 Do not fire PlayerBucketFillEvent when no fluid (Fixes #4611) 2021-08-17 15:43:01 +01:00
Jake Potrebic
5da877975c Fix yaw on player spawn (#6409) 2021-08-16 14:46:25 -07:00
Noah van der Aa
f9143cf9ec Don't fire entitymovevent for players. (#6402) 2021-08-15 19:37:42 +02:00
Jake Potrebic
f217b15bbf Fix possible divide by 0 error with cursor updates (#6398) 2021-08-14 10:44:31 -07:00
Shane Freeder
746d5cb8fb Revert "Revert "Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)""
This reverts commit d2f7432e32.
2021-08-14 15:24:53 +01:00
Shane Freeder
d2f7432e32 Revert "Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)"
This reverts commit 701cceb170.
2021-08-14 15:22:21 +01:00
Shane Freeder
701cceb170 Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)
Mojang made some changes to priorities in 1.17 and it seems that these changes
conflict with the changes made in this patch, which in some cases appears to
cause excessive rescheduling of tasks.

This, however, is not confirmed as such but seems to be the behavior that we're
seeing to cause this issue, if mojang has adopted the changes we suggested,
then a good chunk of this patch may be unneeded, but, this needs a much better
look than I'm currently able to do
2021-08-14 14:55:55 +01:00
Jason Penilla
92222b3c9d [ci skip] Add some helper methods to the ObfHelper util class (#6374) 2021-08-14 03:06:17 -07:00
Jason Penilla
f5dd603274 [ci skip] Drop "Fix CME on adding a passenger in CreatureSpawnEvent" (#6384)
This is no longer needed as Entity#passengers is an ImmutableList as of 1.17
2021-08-14 03:01:07 -07:00
Jake Potrebic
b230147e18 Clear bucket NBT after dispense (#6391) 2021-08-14 02:51:03 -07:00
Jake Potrebic
112c19b45e Implement Translatable in appropriate places (#6248) 2021-08-13 21:11:12 -07:00
Jason Penilla
18178d7c9a Add config migration for named entity death logging option (#6390) 2021-08-13 13:24:25 -07:00
Warrior
7b05942bcc Configurable item frame map cursor interval (#6385) 2021-08-13 21:14:44 +02:00
Jake Potrebic
85195961ea Make EntityUnleashEvent cancellable (#4993) 2021-08-13 11:15:43 -07:00
Jake Potrebic
037884fc65 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6379)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-08-13 10:08:34 -07:00
Jason Penilla
6b4f50a1cb Fix block drops position losing precision millions of blocks out (#6387) 2021-08-12 21:46:55 -07:00
Andrew Steinborn
6a9023862c Optimize indirect passenger iteration (#6366) 2021-08-12 22:55:41 +00:00
Jake Potrebic
fd585fd5da Add warning to getOfflinePlayers (#6365) 2021-08-12 15:38:25 -07:00
Jason Penilla
1093b2f26a Use AsyncAppender instead of AsyncLoggerContextSelector to keep loggging IO off main thread (#6381) 2021-08-12 10:55:20 -07:00
Shane Freeder
0850e18436 Expose EntityType#getTranslationKey 2021-08-11 06:12:57 +00:00
Mariell Hoversholm
cdb63d6ad0 refactor: do not import List; use FQN
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 13:57:36 +02:00
Mariell Hoversholm
7df3240f80 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear 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:
e0598aa2 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter

CraftBukkit Changes:
2cdc6b1e4 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter
2021-08-05 21:53:50 +02:00
Jake Potrebic
ecbd399610 Added EntityItemDamageEvent (#4928) 2021-08-09 22:04:44 -07:00
Jason Penilla
c3a36117a8 Config option for Piglins guarding chests (#4829) 2021-08-09 19:13:58 -07:00
Andrew Steinborn
3a2986e746 Optimize entity tracker passenger checks (#6361)
When a ServerEntity instance is first constructed, it uses a pre-Java 9 empty collection,
but passengers use Guava ImmutableList. When comparing the two collections via Object#equals
we miss out on an opportunity to reduce the check to little more than a reference equality
check (which is very fast).
2021-08-09 18:36:45 +00:00
Bjarne Koll
68db0c9853 Support complex components in written book builder (#6337)
The previously existing toBuilder method defined on the CraftMetaBook
would, no matter if called on a writable or written book, return a
builder targetting a writable book, in which complex components, such as
hover or click text are not allowed.

The builer hence serializes the page components using LEGACY_UXRC to
ensure only colour may be passed. While this works as intented for
writable books, the builder fails to fully support the complex
components that may be used in a written book.

This commit implemements a child class of the CraftMetaBookBuilder, the
CraftMetaBookSignedBuilder, which builds to a CraftMetaBookSigned
instance and hence serializes the pages to json.
This builder instance is automatically supplied when calling toBuilder
on a CraftMetaBookSigned instance.

Resolves: #6296
2021-08-09 00:57:20 +02:00
Jake Potrebic
835479f878 clone itemstack to return remaining stack (#6353) 2021-08-06 23:55:16 -07:00
Jake Potrebic
77aea984df Add missing DamageCause for EntityDamageByBlockEvent (#6352) 2021-08-06 23:03:50 -07:00
Jake Potrebic
6b7f31b6ea Make hoppers respect inventory max stack size (#4838) 2021-08-06 17:35:42 -07:00
Kacper Płażewski
b7d13d69f9 [ci skip] add vs code files to .gitignore (#5663) 2021-08-07 02:27:45 +02:00
Jake Potrebic
c5487cc115 call EntityDamageByBlockEvent for campfires (#6244) 2021-08-06 17:20:39 -07:00
Jake Potrebic
299284be1d Add PlayerSetSpawnEvent (#5690) 2021-08-06 13:37:38 -07:00
thamid-gamer
973d5bf77b Fix Incorrectly Typed Goals (#6200) 2021-08-06 13:05:53 -04:00
Noah van der Aa
5aeb8c87e7 Fix ITEM_DROPPED stat not working properly (#6331) 2021-08-06 18:46:25 +02:00
Mariell Hoversholm
7167583c8a fix: promote slf4j-api to api scope (#6343)
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 18:01:18 +02:00
Shane Freeder
c45970a2c1 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear 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:
75a0ee4f SPIGOT-6691: Material.LAVA_CAULDRON is not Levelled

CraftBukkit Changes:
e1c96e50 SPIGOT-6682: Blocking with shield not reset after die
97f629b6 SPIGOT-6220: Structures in the world with custom generator not work
85379258 Increase outdated build delay
f7f8dce4 SPIGOT-6552: Some inventory types reset cursor on switch
2021-08-04 16:26:56 +01:00
Prof-Bloodstone
5d201168ef Fix writing server.properties with wrong encoding (#6322)
Fixes #6321
2021-08-04 09:48:15 +02:00
Shane Freeder
06a831d477 Fix SysoutCatcher when plugins log before initialisation (Fixes #6323) 2021-08-04 04:04:12 +01:00
Mariell Hoversholm
9ff41ed426 fix: boats' bounding boxes must be deflated, not inflated (#6314)
Fixes GH-6312.

Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-03 12:13:43 +02:00
Emilia Dreamer
e51f909450 Fix incorrect colors in ConsoleCommandSender messages with TranslatableComponents (#6287) 2021-08-03 10:48:34 +03:00
Prof-Bloodstone
cdd278225c Allow skipping writing of comments to server.properties (#6251)
Makes less git noise, as it won't update the date every single time

Use -DPaper.skipServerPropertiesComments=true flag to disable writing it
2021-08-03 09:35:02 +02:00
Noah van der Aa
f8261096c8 Prevent AFK kick while watching end credits (#6239). (#6265) 2021-08-02 10:43:56 +02:00
Hannes Greule
d891837b28 Rewrite LogEvents to contain information about the source jar of stacktrace elements (#6142) 2021-08-02 10:32:53 +02:00
Nassim Jahnke
243cfdf6b5 Don't not shuffle visible chunks (#6283) 2021-08-02 10:00:31 +02:00
Underscore11
007c5e34af Allow plugins to use Log4J to log (#6288) 2021-08-02 00:57:31 -07:00
ChristopheG
73f9a698de Add force getter to ParticleBuilder (#6300) 2021-08-02 09:51:55 +02:00
Underscore11
fbc4b4ca6d Add System.out.println catcher (#6278) 2021-08-02 00:07:48 -07:00
Shane Freeder
b3f290d877 Fix some inconsistency issues with empty map items (#6304) 2021-08-01 16:55:25 +01:00
Shane Freeder
3a17437d6f Mark sensor and behavior timings as verbose 2021-08-01 10:22:55 +01:00
PaulBGD
1c0ded9f9b Correct handling of invalid maps (#6302) 2021-07-31 15:47:01 -05:00
Nassim Jahnke
722c7ccb57 Fix closeInventory shenanigans (#6292) 2021-07-30 11:37:11 +02:00
Finn Künstner
bf8f91cf09 [ci skip] Fix various compile warnings (#6264) 2021-07-30 01:04:26 +02:00
Owen1212055
23470be165 Add bee stinger API (#5962) 2021-07-28 20:36:53 -04:00
Gergely Sarkozi
3e76cbef70 fix empty array elements in command args (#5778) 2021-07-28 20:37:32 +02:00
Nassim Jahnke
15031fa7d7 Updated Upstream (CraftBukkit) (#6279)
Upstream has released updates that appear 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:
6788550f SPIGOT-6678: ChunkSnapshot#isSectionEmpty() not working as intended.
3ad0fb1c #901: Fix PlayerStatisticIncrementEvent spam
2021-07-28 09:39:14 +02:00
Jason Penilla
e2a638ce6d Call EntityKnockbackByEntityEvent for RamTarget Behavior (#6273) 2021-07-26 09:41:26 -07:00
MeFisto94
7dc5d71367 Move "use-display-name-in-quit-message" to settings namespace (#6257) 2021-07-26 01:11:44 +02:00
Max Lee
b7ac1102ba Add config option to specify timings url (#6256) 2021-07-25 08:10:30 +01:00
TwoLeggedCat
8b32eebc95 Add fireball to default max load config (#6252) 2021-07-25 02:00:54 -05:00
Max Lee
0f090e7328 Add the default tick rate of the sensor to the timings (#6242) 2021-07-25 07:50:36 +01:00
Jake Potrebic
7b87553d96 Updated Upstream (CraftBukkit) (#6260) 2021-07-23 19:33:05 -07:00
Jake Potrebic
eaaca77f42 Fix flat bedrock (#6255) 2021-07-23 14:18:10 -07:00
Jake Potrebic
d58099f73b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6245)
Upstream has released updates that appear 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:
e7b0f8d6 #642: Add Crafting methods to API
9e58831e SPIGOT-6641: Use varargs in sendMessage
e409fe49 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
6997c726 SPIGOT-6661: Fix missing radius from GenericGameEvent
02d03f35 SPIGOT-6369: Add ItemStack to HangingPlaceEvent

CraftBukkit Changes:
0abf420c SPIGOT-6665: Shearing a Snowman does not drop a carved pumpkin
e8e3cbcc #893: Add Crafting methods to API
879acfee Fix missing varargs from previous commit
6572b9c3 SPIGOT-6641: Use varargs in sendMessage
9e06bb2a SPIGOT-6663: Chicken Jockeys chickens don't despawn
699f2d36 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
8ffa54ba SPIGOT-6369: Add ItemStack to HangingPlaceEvent
c851639c SPIGOT-6645: Call EntityChangeBlockEvent before PlayerHarvestBlockEvent
8d244b0b SPIGOT-3725, SPIGOT-6638, MC-136917: Properly clear tile entities before replacing

Spigot Changes:
18c71bf4 Rebuild patches
2021-07-22 11:11:56 -07:00
Jake Potrebic
e00202c42a Add ItemRarity test (#6247) 2021-07-21 21:48:24 -07:00
Jake Potrebic
012cb6b015 Fix various mob drops being captured as death drops (#5675) 2021-07-21 19:58:24 -07:00
Jake Potrebic
7eab7227cb Drop unneeded patch (#6240) 2021-07-21 11:18:54 -07:00
Nassim Jahnke
985e42705e Fix PaperTickList (#6241)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-07-21 19:12:24 +02:00
Jason Penilla
4ca56ff079 [ci skip] Put mappings util in a separate class to the stacktrace deobfuscator (#6230) 2021-07-19 19:22:18 -07:00
Kyle Wood
d3ba412286 Update email & name (DenWav)
Also I think I prefer my few tiny patches to be GPL.
2021-07-19 21:07:53 -05:00
zml
fc90f774bc Fix book title and author being improperly serialized as components (#6190)
They are kept as plain strings
Additional validation has been added to prevent invalid books from being
sent to the client.
2021-07-19 16:11:06 -07:00
Nassim Jahnke
ba64307307 Don't expose ASM in API (#6229)
ASM was not meant to exposed to API consumers in the first place, and for the duration of time it has been exposed, it has also been relocated.

Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-07-20 00:58:48 +02:00
Nassim Jahnke
e2ed8e9e86 Use mapped names for sensor and behavior timings/config (#6228) 2021-07-19 13:07:49 +02:00
Max Lee
3051846c73 Add rate options and timings for sensors and behaviors (#6027) 2021-07-19 10:47:33 +01:00
Max Lee
93634e1897 Don't apply cramming damage to players (#5903) 2021-07-19 10:31:03 +01:00
thamid-gamer
48f55186f1 Fix MerchantOffer BuyB Only AssertionError (#6206) 2021-07-19 05:16:53 -04:00
Jason Penilla
3626a2c62b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6222)
Upstream has released updates that appear 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:
eec4aab0 SPIGOT-6657: Add getPlayer to SheepDyeWoolEvent
205213c6 SPIGOT-6656: CauldronLevelChangeEvent is not fired correctly when dripstone fills the cauldron

CraftBukkit Changes:
b8c522d5 SPIGOT-6657: Add getPlayer to SheepDyeWoolEvent
f04a77dc SPIGOT-6656: CauldronLevelChangeEvent is not fired correctly when dripstone fills the cauldron
d1dbcebc SPIGOT-6653: Canceling snow bucket placement removes snow from bucket
4f34a67b #891: Fix scheduler task ID overflow and duplication issues

Spigot Changes:
d03d7f12 BUILDTOOLS-604: Rebuild patches
2021-07-18 00:41:53 -07:00
Nassim Jahnke
039952aa5e Revert "Fix PaperTickList" (#6216)
This commit reverts b166af8801
2021-07-17 21:57:00 +02:00
Nassim Jahnke
95ff18dca7 Fix block action handling (#6213) 2021-07-17 14:46:46 +02:00
Jake Potrebic
6cb42c485b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6209) 2021-07-16 18:48:27 -07:00
Jake Potrebic
b166af8801 Fix PaperTickList (#6191) 2021-07-16 09:18:04 -07:00
Jake Potrebic
186cf8842e Fix distanceSq check on block breaking (#6195) 2021-07-15 20:01:48 -07:00
Jake Potrebic
6602dc655e Catch desynced block breaks (#6193) 2021-07-15 16:00:58 -07:00
Jake Potrebic
83db66562f Use cause and cancel component in PlayerGameModeChanteEvent (#6192) 2021-07-15 14:44:59 -07:00
LemonCaramel
6ac1befa7b Fix Stonecutter #6180 issue (#6181) 2021-07-15 00:37:22 +09:00
sulu5890
22ac08c412 Fix incorrect message for outdated clients (#6160) 2021-07-13 21:49:38 -05:00
Shane Freeder
87ad9b0502 Fix missing annotation 2021-07-13 19:15:18 +01:00
Shane Freeder
4ca03426b0 Expand resource pack API 2021-07-12 20:42:17 +01:00
Jason Penilla
713b774a85 [ci skip] Use commit timestamp instead of build time in manifest (#6161) 2021-07-11 23:24:48 -07:00
Jake Potrebic
67e2594825 Fix command signs (#6139) 2021-07-11 11:06:49 -07:00
Jake Potrebic
5ce2cd8c05 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6149)
Upstream has released updates that appear 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:
17c35d6e SPIGOT-6637: Revert "#636: Add FurnaceStartSmeltEvent"
4b27230b SPIGOT-6623: Missing API reasons for entity freezing
e1528c85 #636: Add FurnaceStartSmeltEvent

CraftBukkit Changes:
a6292cc3 SPIGOT-6637: Revert "#874: Add FurnaceStartSmeltEvent"
f4066854 SPIGOT-6579: DragonFireBall movement with setDirection jumps around a lot
9add952b SPIGOT-6623: Missing API reasons for entity freezing
2ea359f1 #874: Add FurnaceStartSmeltEvent
be8d625e SPIGOT-5560, SPIGOT-6574, SPIGOT-6632: Remove no longer needed tile entity fix

Spigot Changes:
eac3cd96 Rebuild patches
2021-07-11 00:01:29 -07:00
Jake Potrebic
f359da1843 Fix NPE from using wrong ProtoChunk ctor (#6147) 2021-07-10 13:17:47 -07:00
Jake Potrebic
dcdec7d59c Add config for mobs immune to default effects (#4835) 2021-07-09 21:49:49 -07:00
Jake Potrebic
ee11682d4d fixed kick event leave message (#4766) 2021-07-09 12:03:28 -07:00
Nassim Jahnke
081a882f94 Updated Upstream (CraftBukkit)
Upstream has released updates that appear 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:
b5d7883a SPIGOT-6634: Override needed method
99561c21 SPIGOT-6624: Explosions do not destroy blocks out of vanilla heights in custom dimensions
2021-07-09 16:08:42 +02:00
Jake Potrebic
fc955009ca Add PlayerArmSwingEvent (#5353) 2021-07-09 06:56:30 -07:00
Xemorr
d81fd123ce Swapped out Vec3#distanceTo call with a Vec3#distanceToSqr call to remove calls to Math.sqrt 2021-07-07 20:58:54 +01:00
Jake Potrebic
2c55fce23e Fix collisions during world generation (#6129) 2021-07-09 03:16:57 -07:00
Jason Penilla
5fe7fbd769 [ci skip] Add a test plugin (#6133) 2021-07-09 03:04:33 -07:00
Jason Penilla
43e9be4586 [ci skip] Remove extra newlines at EOF (#6127) 2021-07-08 18:40:24 -07:00
Bjarne Koll
fc1a197de2 Ensure shulker bounding box is updated (#6010)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2021-07-09 03:18:32 +02:00
Jake Potrebic
9d46f898d9 Fix cancelling EntityPickupItemEvent for villagers (#6091)
Remove's Billy's fix as upstream implemented a (broken) fix and then fixed their fix
2021-07-07 11:07:38 -07:00
Nassim Jahnke
2689c8d04f Drop no longer needed patch (#6115) 2021-07-07 19:18:05 +02:00
MD
aeb072c35d Route sign run_command click events through normal chat logic (#6109)
This patch changes sign command logic so that `run_command` click events are routed through the standard chat/command
logic used for inbound chat messages.

This fixes numerous issues related to sign click commands:
  - Signs with a `run_command` value of "/<plugin command>" would fail and show the "Unknown command" warning. This
    prevents usage of commands like `//wand` from WorldEdit in sign click events entirely and requires users to drop
    the leading slash from other plugins' commands. This patch now executes the plugin commands as would be expected,
    adding a leading slash if necessary.
  - Signs with a `run_command` value that doesn't match an existing command could fail silently. This patch causes
    these to *always* show "Unknown command" instead.
  - Plugins listening to `PlayerCommandPreprocessEvent` would not be able to intercept any command executions from
    sign click events. This patch allows plugins to intercept player commands when fired by a click event, in the same
    manner as commands executed by the player typing or clicking on a chat message.
  - Commands executed from signs would not be logged to the console. This patch fixes this.

This patch also prepends a leading slash if the `run_command` value lacks one, which matches vanilla behaviour (old
code would strip this slash away) while also ensuring `PlayerCommandPreprocessEvent#getMessage` remains consistent
with other command executions from chat (which always include the leading slash).
2021-07-07 16:12:58 +01:00
Jason Penilla
737c162fe2 [ci skip] Use Java toolchain for run tasks (#6108) 2021-07-07 06:18:02 -07:00
Malfrador
fa7bf2d3dc Add option for logging named entity deaths (#6107) 2021-07-07 15:15:17 +02:00
dfsek
6a93c5c949 Add methods to ProtoWorld for working with BlockStates (#5929) 2021-07-07 03:23:16 -07:00
Jason Penilla
0b90741c3f Move log message for named entity deaths into correct location (#6105) 2021-07-07 03:04:34 -07:00
Jason Penilla
8a664e6bbc Deobfuscate stacktraces in sync load info (#6103) 2021-07-07 00:19:08 -07:00
Nassim Jahnke
7037cd401f Update to Minecraft 1.17.1 (#6097) 2021-07-07 08:52:40 +02:00
Jake Potrebic
43f52d9c13 add Optimize Light Engine patch (#5863) 2021-07-05 21:30:39 -07:00
chickeneer
d61d127882 AbstractSkeleton should extend RangedEntity (#6087)
This includes Strays and matches the mojang RangedAttackMob
2021-07-05 22:48:08 -05:00
Jason Penilla
d9fde9a55a Add back linking to Adventure Javadoc (#6088) 2021-07-05 20:25:23 -07:00
Jake Potrebic
fff6b90af3 Fix Player#playerListName nullability annotation (#6089) 2021-07-05 20:22:11 -07:00
Jason Penilla
cad0a49123 Fix incorrect variable usage in per-player mob spawning patch (#6077) 2021-07-04 09:30:59 -07:00
Jason Penilla
08033a4fc0 Also deobfuscate secondary stacktraces in crash reports (#6078) 2021-07-04 03:20:11 -07:00
Jason Penilla
1d6b275814 Fix Bossbar updating (closes #6061) (#6076) 2021-07-03 16:26:13 -07:00
Jake Potrebic
42714f234c fix custom beacon ranges (#6067) 2021-07-02 12:51:49 -07:00
PaulBGD
88029f0e8a Readd "Use getChunkIfLoadedImmediately in places" (#6047)
* Readd "Use getChunkIfLoadedImmediately in places"

* Formatting

* Fix var names
2021-07-02 14:04:29 -05:00
BillyGalbreath
42293b52e2 Honor spigot.yml setting log-villager-deaths (#6057)
cat note: giggity.
2021-07-01 22:28:31 -05:00
Shane Freeder
2143a948be Fix NPE when completing skull lookups without a real owner (Fixes #6052)
This looks like mojang introduced an NPE however it was previously being
supressed by the future used by the server, we'll just stick to the legacy
behavior of retainining the existing profile of earlier versions
2021-07-01 00:10:28 +01:00
Shane Freeder
0641643c4a Backport MC-229191 ore distribution changes 2021-06-30 22:11:40 +01:00
Shane Freeder
5a5d27f6a1 Fix NPE when using broadcast as players are joining 2021-06-29 22:21:42 +01:00
Shane Freeder
0e2c1c7288 [ci skip] patch-ception 2021-06-29 17:39:17 +01:00
Shane Freeder
73d13c8c88 Don't complete skull lookups on main thread (MC-227435) 2021-06-29 17:34:20 +01:00
Jason Penilla
d0c06257f1 [ci-skip] Fix description of add-plugin command line option (#6031) 2021-06-29 02:09:02 -07:00
stonar96
c7e9c0260f Optimize Anti-Xray (#5991) 2021-06-29 11:01:47 +02:00
Jason Penilla
85ba428029 Fix return value of Block#applyBoneMeal always being false (#6030) 2021-06-28 18:37:44 -07:00
Shane Freeder
f3e872c626 Fix players not being added to collide rule (Fixes #6024) 2021-06-28 22:16:46 +01:00
Kezz
1029e65bb2 Implement Sound.Source.Provider (#5935) 2021-06-28 14:07:19 +01:00
Jake Potrebic
cecb38e6ed Improve horrible CraftChunk#getEntities performance (#5999)
Thanks Spigot, very cool.
2021-06-28 05:53:28 -07:00
Kyle Wood
4c515198bb Trim whitspace off of git hash (oops) 2021-06-26 23:51:03 -05:00
Kyle Wood
16030c824f Update task dependency for includeMappings so the new task isn't skipped
The new task fixJarForReobf was added after shadowJar, but since
reobfJar's input is changed in this patch, that new task needs to be
referenced instead of shadowJar.
2021-06-26 22:26:17 -05:00
Kyle Wood
0b0461e997 Remove now unneeded patch due to paperweight 1.1.7 2021-06-26 22:22:05 -05:00
Kyle Wood
99bb2c025c Get short commit ref using a more proper method 2021-06-26 22:15:13 -05:00
Shane Freeder
65c6d7f38f Drop codec spam fix (Fixes #5936)
having spoken to mojang about this the general issue is data which shouldn't
have been saved in the first place, so if we lose this data it's not really
an issue, bar being annoying spammy. if the spam gets on your nerves, shamefully,
all you can really do is forceUpgrade to get the conversions of the way.

Dropping as this breaks other aspects of the server and bar being spammy
seems to have no other real negative outcomes
2021-06-26 12:56:06 +01:00
Nassim Jahnke
f800d80c45 Fix chicken jockey chicken persistence (#6005) 2021-06-26 10:54:24 +02:00
Jake Potrebic
28e57942d7 Fix use of universe flag and forceUpgrade 2021-06-25 18:56:12 -07:00
Jason Penilla
254ac170de Do not cancel chunk load on ticket level change (#5978)
New chunk system doesn't do cancellations anymore.

Co-authored-by: Spottedleaf <spottedleaf@users.noreply.github.com>
2021-06-24 02:12:47 -07:00
Shane Freeder
65a6e249ea Allow explosions under 0 height (Fixes #5974)
Upstream forgot to update the check here which prevents explosions
occuring under 0 height, however, vanilla already checks that we
are in bounds of the world above this, so this call is entirely
redundant.
2021-06-24 01:44:23 +01:00
Prof-Bloodstone
5126271b6c Make gradle take build number from env vars and add git build info (#5890)
* Make gradle take build number from env vars

* Add git information to manifest and version command/log

* trim

* Fix tests by adding NotNull annotations

* rebase

* Apply suggestions from kashike

Co-authored-by: Riley Park <rileysebastianpark@gmail.com>

* Not always show branch

* Why can't everything be NotNull by default?

* Rebase

Co-authored-by: Riley Park <rileysebastianpark@gmail.com>
2021-06-23 19:19:44 +02:00
stonar96
c00618d009 Refactor Anti-Xray and make some fixes to it (#5938) 2021-06-23 10:39:02 +02:00
Jake Potrebic
2c17a86e82 Fix mobs not burning from summon command (#5961) 2021-06-23 01:07:59 -07:00
Jake Potrebic
7c2140bc63 Fix NPE when setting cook multiplier (#5956) 2021-06-22 12:26:03 -07:00
Shane Freeder
5b8a29a0cc Ensure disconnect for book edit is called on main 2021-06-22 20:00:11 +01:00
Jake Potrebic
ce3e8e8708 remove calling expensive method (#5955) 2021-06-22 11:52:45 -07:00
Shane Freeder
4ad15af215 Fix kick event being fired off main thread 2021-06-22 19:35:35 +01:00
Nassim Jahnke
b7605a2231 Fix player collision patch cleanup (#5947) 2021-06-22 15:58:20 +02:00
Shane Freeder
1599ffc11d Try even harder to get an origin world and avoid NPEs (Fixes #5931) 2021-06-22 11:54:49 +01:00
Owen1212055
4a7d7decce Add more fox API (#5743) 2021-06-22 03:44:02 -04:00
Jason Penilla
ed04368157 Expand where stacktraces can be deobfuscated (#5944)
Also load the mappings from the correct location
2021-06-21 21:12:07 -07:00