357 Commits

Author SHA1 Message Date
pop4959
eb7a2dcc51
#1003: Fix cancellation of TradeSelectEvent 2022-01-29 09:27:01 +11:00
Doc
13670b4426
SPIGOT-6890: Add repair cost amount in AnvilInventory 2022-01-26 09:30:35 +11:00
DerFrZocker
30b4043e2a
SPIGOT-6907: Oxygen does not restore up to value set by LivingEntity#setMaximumAir() 2022-01-23 09:06:19 +11:00
Phoenix616
74a5cc8a78
#994: Fix changing world in portal events not updating used world border
Also clamp the event's target location to the world border
2022-01-20 18:36:14 +11:00
Doc
2e61a5f8eb
SPIGOT-6888: Add SpawnReason for Vex spawned by Evokers 2022-01-14 10:55:59 +11:00
Martoph
f3828bbee6
#989: Add PDC to Structures 2022-01-07 09:43:38 +11:00
DerFrZocker
cc86ab1886
SPIGOT-5339, SPIGOT-6252, SPIGOT-6777: Only cancel knockback if the damage event was canceled 2022-01-03 18:07:01 +01:00
DerFrZocker
aeaeb35931
SPIGOT-6496: /time functions affect entire server, not just the origin world 2022-01-03 08:29:31 +11:00
md_5
fb92f345d9
SPIGOT-6278: Persistent piglins count towards mob cap 2022-01-02 11:45:52 +11:00
Matthew
752fa511a9
#374: Add isJohnny / setJohnny for Vindicator 2022-01-01 09:58:04 +11:00
Matthew
19f2af066e
#373: Add trap related methods to SkeletonHorse 2022-01-01 09:58:04 +11:00
blablubbabc
0ba6b90135
SPIGOT-5766: The VillagerReplenishTradeEvent is now called when a villager restocks its trades. 2021-12-25 10:14:17 +11:00
DerFrZocker
bdff7d56fb
SPIGOT-5627: Leads vanish when transporting leashed entities through a Nether portal 2021-12-25 09:39:27 +11:00
Doc
c59b0ca13d
SPIGOT-6859: PlayerInteractEntityEvent#setCancelled desync with Axolotls 2021-12-22 08:04:07 +11:00
Doc
86c91bab1f
SPIGOT-6836: Add more API methods in MerchantRecipe 2021-12-18 11:44:34 +11:00
md_5
e36f7599d6
SPIGOT-6852: BlockReceiveGameEvent#getBlock returning wrong block 2021-12-14 07:52:43 +11:00
md_5
dad8517102
SPIGOT-6851: removeRecipe not unregistering recipe ID 2021-12-13 11:25:22 +11:00
md_5
c2e0bbda4e
Update to Minecraft 1.18.1 2021-12-11 00:12:31 +11:00
md_5
3c2af1b7f5
SPIGOT-6831: Fix llama strength crash 2021-12-06 15:15:09 +11:00
Bjarne Koll
f49e9d1932
#971: Remove strong chunk reference in PDC
A previous fix for SPIGOT-6814 implemented a callback function for the
PDC implementation that could be set to actively define a chunk as
unsaved, allowing chunks that have not been mutated through block
changes to still require saving if the chunks pdc was mutated.

This implementation however would pass a callback that references the
chunk access internally, meaning the PDC now actively holds onto a
callback that holds a reference to the entire chunk.

Aditionally, this change also impacted the pdc for item metas and
entities for really no reason whatsoever.

This commit re-implements the fix by introducing a new child of the pdc
implementation that the chunk now uses as its pdc. This specific
implementation maintains a dirty flag that is set to `true` on any form
of mutation and set back to false by the chunk that owns the PDC
whenever the chunk itself is flag as no longer dirty.
2021-12-05 08:53:46 +11:00
md_5
1825cc0b04
Purge hidden entities on unload too 2021-12-04 08:23:26 +11:00
Rafael S. M. Santos
fd3478bc77
#967: Store last lava contact location for events 2021-12-04 08:06:32 +11:00
md_5
748ea518b1
SPIGOT-6833: Do not drop items into unrestricted world during world generation 2021-12-04 07:19:56 +11:00
md_5
6f3509d12e
Release POIs when villagers are removed by plugins 2021-12-03 15:05:20 +11:00
md_5
03b7252338
SPIGOT-6823: Fix loading custom world in combination with superflat 2021-12-03 08:34:38 +11:00
md_5
110492932a
Fix per-world worldborder command 2021-12-03 07:34:39 +11:00
md_5
581df1846f
Better preserve broken PlayerMoveEvent behaviour 2021-12-02 12:45:58 +11:00
md_5
2ccb6a9b9f
SPIGOT-6828: <player> fell off a ladder/vines death message not supported 2021-12-02 12:29:35 +11:00
Rafael S. M. Santos
a0087010ac
SPIGOT-6795: Fix BlockFertilizeEvent not being triggered for Azaleas 2021-12-01 08:27:58 +11:00
Doc
a46e7f18e8
SPIGOT-6820: VillagerCareerChangeEvent's ChangeReason is sometimes incorrect 2021-12-01 08:26:14 +11:00
md_5
9fb3aa4c7a
SPIGOT-6817: Revert back to old block state behaviour again 2021-11-29 11:03:16 +11:00
DerFrZocker
04f8e7e21f
SPIGOT-6814: (Chunk) PersistentData is lost after restart 2021-11-29 09:28:19 +11:00
md_5
37fd1917e7
Add hideEntity / showEntity API 2021-11-29 09:18:52 +11:00
md_5
c98abfb0ff
Update to Minecraft 1.18-rc3 2021-11-27 08:00:00 +11:00
md_5
5a39a236c1
Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00
Doc
3b214b5a21
SPIGOT-6803: Fix ServerPing not using the new logic for show players in 1.18 2021-11-24 07:28:22 +11:00
md_5
2f6662d467
Improve multi-dimension code 2021-11-23 18:39:43 +11:00
md_5
6ac2e0325a
SPIGOT-6802: Fix major issues with --forceUpgrade
More to come
2021-11-23 17:13:52 +11:00
md_5
37e63e63e8
Fix loading / creating secondary worlds (nether/end) 2021-11-23 15:03:34 +11:00
md_5
a7b8b0270a
Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
md_5
eb14700779
SPIGOT-6797: EntityInteractEvent called with incorrect location 2021-11-21 11:23:17 +11:00
md_5
f63504952f
SPIGOT-6798: EntityChangeBlockEvent called with incorrect location 2021-11-21 11:18:06 +11:00
DerFrZocker
747a73ec92
SPIGOT-6772: Use entity mailbox and re-schedule entities if they get unloaded 2021-11-01 18:54:44 +11:00
Doc
eb9a0f34af
#945: Allow setting BrewEvent results 2021-10-30 18:16:39 +11:00
DerFrZocker
f0f801e58e
SPIGOT-5988: Bedspawn doesn't clear after dying when spawn is blocked 2021-10-16 19:39:14 +11:00
blablubbabc
e2ac9c6ba8
SPIGOT-6758: Reset ItemSign#openSign when aborting the block placement early 2021-10-16 18:49:19 +11:00
md_5
b86793136b
SPIGOT-6760: Chest#getInventory only returns one half of a double chest when one or both halves are blocked 2021-10-16 18:49:04 +11:00
blablubbabc
4faf479e6c
SPIGOT-6754: We ignore any still present TileEntity now when we create a BlockState for a block of type AIR.
During block destruction, the type of the block may already have been set to AIR while the TileEntity has not yet been removed.
Also, TileEntity#getOwner() skips the whole BlockState construction now if the block is of type AIR.

This removes the previous workaround again of returning a dummy CraftBlockEntityState in this case.
2021-10-10 07:55:53 +11:00
Sander Knauff
1df303e707
SPIGOT-2903: Add Structure API 2021-10-05 12:24:21 +11:00
Doc
346ebb7a7a
#934: Support for configuring Water Underground Creatures spawn settings 2021-10-05 11:39:21 +11:00