Commit graph

2909 commits

Author SHA1 Message Date
Jason Penilla
c762d416c5 Fix villager boat exploit (#5047) 2021-01-11 13:23:11 -08:00
Shane Freeder
630fa37394 Properly track block update flags (actually fixes #5038) 2021-01-11 19:08:03 +00:00
Shane Freeder
2b06877898 Fix debug stick update suppression (Fixes #5038) 2021-01-11 16:45:37 +00:00
Josh Roy
23c21fc4bf Fix dumpitem command not checking sender (#5025) 2021-01-10 20:49:50 -05:00
Shane Freeder
c92072e21d nerf nether search radius config (#4781) 2021-01-11 01:44:06 +00:00
Shane Freeder
8a917b49f4 clone POI blockpos before dispatching 2021-01-10 18:36:38 +00:00
Aikar
1105e1ec76 Optimize Loaded Chunks Cache Lookups
Reduces number of instructions a chunk lookup does
when accessing the last chunk cache. This reduces amount of work and opcodes
and allows better inlining.

In lots of profiling comparisons, this optimization was able to reduce the
cost of repeated chunk lookups that hit the cache pretty significantly.
2021-01-09 18:09:09 -05:00
Shane Freeder
442fa32443 Ensure POI removal occurs on the correct thread 2021-01-09 13:32:26 +00:00
Shane Freeder
3a358f7e70 Remove stale POIs 2021-01-09 14:19:17 +01:00
Prof-Bloodstone
f11f1f32f5 Remove patch for not searching for portal creation when looking down (#5031)
Previous commit bb02d0383 pulled upstream change that implements the exact same fix.

CB change: 7029c0a8f3

Co-authored-by: Professor Bloodstone <git@bloodstone.dev>
2021-01-09 12:28:28 +01:00
Matthew Miller
728fb4ecd4 Add API to get exact interaction point in PlayerInteractEvent (#4995) 2021-01-08 15:26:51 +10:00
Mariell Hoversholm
f463a0b97c Empty commands shall not be dispatched
Fixes PaperMC/Paper#5018.
2021-01-06 23:41:42 +01:00
Jake Potrebic
1b82f95755 Configurable door breaking difficulty 2021-01-03 22:28:18 -08:00
lukas81298
161726557c don't search for portal creation when looking down 2021-01-05 15:14:35 +01:00
Shane Freeder
bc2999f578 Print name of busted server config files 2021-01-05 11:21:03 +00:00
Jake Potrebic
fb045c7249 Added PlayerLoomPatternSelectEvent 2020-11-25 16:37:34 -08:00
Ivan Pekov
6eeef75460 Reimplement GS4QueryEvent 2020-12-09 09:21:19 +02:00
Jake Potrebic
4048b356d0 Added PlayerLecternPageChangeEvent 2020-11-23 12:59:17 -08:00
TheViperShow
5e08466cc1 Add BlockFailedDispenseEvent
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev>
2020-11-29 00:38:52 +01:00
Jake Potrebic
3ca5850362 Added world settings for mobs picking up loot 2020-11-28 18:46:44 -08:00
Jake Potrebic
d2e5086e43 Added ServerResourcesReloadedEvent 2020-12-02 20:05:09 -08:00
Jake Potrebic
d37d042ff1 colorful itemdump 2020-12-07 18:10:22 -08:00
Jake Potrebic
1c87fa89f9 Added WorldGameRuleChangeEvent 2020-12-20 16:42:33 -08:00
HexedHero
3e15f5aabc Guardian beam workaround 2020-12-31 22:45:30 +00:00
Mariell Hoversholm
542d7df36b Support spawning item stacks 2020-11-14 19:11:20 +01:00
Jake Potrebic
d0f7408554 added height config for bamboo 2020-11-11 17:48:12 -08:00
Josh Roy
023ec47e68 Add EntityLoadCrossbowEvent 2020-10-07 12:04:42 -04:00
stonar96
0367dabcb2 Add Anti-Xray bypass permission
This is a frequently requested feature. The permission is
'paper.antixray.bypass'.
2020-08-07 08:11:56 +02:00
Jake Potrebic
96fc8c1353 fix for nerfed slime mobs splitting 2020-07-17 13:34:50 -07:00
Jake Potrebic
32f9130749 Zombie API - breaking doors 2020-11-18 11:33:29 -08:00
TheMolkaPL
7035d57399 Fix interact event not being called in adventure 2020-06-21 17:25:24 +02:00
MisterVector
428affde24 Add PlayerFlowerPotManipulateEvent 2019-08-13 21:47:06 -07:00
Andrew Steinborn
bd0e8d65a8 Redact Velocity forwarding secret properly (#4980) 2021-01-01 23:59:30 -05:00
BrodyBeckwith
8902bc3512 Allow disabling mob spawner spawn egg transformation 2020-10-09 20:35:57 -04:00
lukas81298
0e12991f69 Cache burn durations 2020-12-27 23:00:27 +01:00
lukas81298
3f56fafda8 Optimized tick ready check 2020-12-29 14:14:43 +01:00
Matthew Miller
fffed3cf0a Add API to get the Material of Boats and Minecarts 2020-12-31 12:51:43 +10:00
Mariell Hoversholm
5a8ce7f006 Fix sign lazy initialisation
Fixes PaperMC/Paper#4975
2021-01-01 14:35:38 +01:00
Jake Potrebic
e11560e965 Updated Upstream (CraftBukkit/Spigot) (#4972)
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:
560b65c4 #707, SPIGOT-5063, SPIGOT-5304, SPIGOT-5656, SPIGOT-3206, SPIGOT-5350, SPIGOT-5980, SPIGOT-4672: Persist the exact internal text representation where possible.

Spigot Changes:
ff439d1e Rebuild patches
2020-12-31 20:03:19 -08:00
PepperCode1
2e7b860b56 Fix harming potion dupe
EntityLiving#applyInstantEffect() immediately kills the player and drops their inventory.
Before this patch, instant effects would be applied before the potion ItemStack is removed and replaced with a glass bottle. This caused the potion ItemStack to be dropped before it was supposed to be removed from the inventory. It also caused the glass bottle to be put into a dead player's inventory.
This patch makes it so that instant effects are applied after the potion ItemStack is removed, and the glass bottle is only put into the player's inventory if the player is not dead. Otherwise, the glass bottle is dropped on the ground.
2020-07-23 14:29:02 -07:00
Aikar
8147d0ec71 Additional Block Material API's
Faster version for isSolid() that utilizes NMS's state for isSolid instead of the slower
process to do this in the Bukkit API

Material#isSolid uses a large switch statement which isn't as performant vs a simple boolean return

Adds API for buildable, replaceable, burnable too.
2020-12-30 19:43:45 -05:00
Aikar
eee1fedc1e Micro Optimize DataBits
There was 2 unnecessary lines of code in a core method used for DataBits
that repeatedly calculated a static value.

We now just precalculate that in the constructor and reuse the value instead.

This is a micro optimization, but this is some of the hottest code in the server so
it should provide some minor gains as well as improve inlining.

Additionally, to further help inlining, mark the DataBits methods as final.
2020-12-30 14:02:44 -05:00
Jason Penilla
b9744db06b Add and implement cancellable TargetHitEvent for when Target Blocks are hit by Projectiles 2020-11-26 00:30:08 -08:00
Jake Potrebic
93a75a9588 Add OBSTRUCTED result to BedEnterResult enum 2020-12-24 12:44:34 -08:00
Automated
0c40a013dd [CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2020-12-28 07:11:59 -05:00
Jake Potrebic
43a4ab7b04 added PlayerTradeEvent 2020-07-02 16:14:36 -07:00
Shane Freeder
25980711f0 Do not crash from invalid ingredient lists in VillagerAcquireTradeEvent 2020-12-27 11:31:49 +00:00
Toshimichi0915
cfebf1baa7 Fix lead duplication 2020-12-25 01:31:13 -05:00
Matthew Miller
cfd2fcf443 Add API to get Tile Entities in a Chunk by Predicate 2020-12-18 21:24:21 +10:00
Jake Potrebic
5583c8c007 fix book page limit length (#4932) 2020-12-23 14:52:56 -08:00