7238 Commits
Author SHA1 Message Date
SKBotNL a5620f9864 Fix mobs not holding items (correctly)
Backport of https://github.com/SpongePowered/Sponge/commit/3027be5746ad4ce5316dd9fedbb24e35d7e7b003
2025-10-11 00:45:02 +02:00
SKBotNL b383040e16 Don't log a warning for shields 2025-10-11 00:44:32 +02:00
SKBotNL 8f007a30a4 Port to 1.16_combat-6 2025-10-10 00:16:31 +02:00
Anselm Brehme ac254ddb73 fix ItemStackComparator
fixes #3991

(cherry picked from commit 93437a738f3e07877fd18af3de7b343fa1a0b7d7)
2024-07-06 11:18:08 +02:00
Gabriel Harris-Rouquette 13af9aa65b fix: Downgrade ServerPlayerGameModeMixin_Tracker
The priority here isn't particularly important, we can allow ourselves
to overwrite early and still allow some injections from others take
place.

Fixes #4007

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2024-05-12 21:56:04 -07:00
aromaa 33a71ea010 Remove unnecessary collection 2024-04-19 19:50:10 +03:00
aromaa 29947f14a7 Fix sponge player uuid table corruption 2024-04-19 19:46:55 +03:00
aromaa d14c89be59 spotlessApply 2024-03-25 20:33:02 +02:00
aromaa 056bd095e4 Remove debug message 2024-03-25 20:15:32 +02:00
Gabriel Harris-Rouquette af13f44581 Merge pull request #3951 from MrHell228/api-8-fix2 2024-02-29 07:00:57 -08:00
MrHell228 cd28793e5c Fix missing offhand transaction
Fix codestyle
2024-02-29 13:51:57 +03:00
MrHell228 7fe37d3d40 Fix CropBlock not using correct age property (#3946) 2024-02-22 16:23:37 +02:00
MrHell228 8e2567bd0d Fix anvil rename warnings 2024-01-16 15:26:59 +03:00
Anselm Brehme e80e7a254c implement ItemType#container 2023-09-01 08:14:33 +02:00
Anselm Brehme 7796c8f513 implement ItemType DataHolder
fixes #3845
2023-09-01 08:14:11 +02:00
Lexi 75aa6d14e9 Backport "Player moved wrongly" fix (#3879)
Backports @Faithcaio's "moved wrongly" fix for API-10
https://github.com/SpongePowered/Sponge/compare/2c2cf414dabf3c5d1f53a8d9ccc840fa678e36b5...e218bf0fe20e7c360c5f31ffcb7ab53408fc9f16
2023-08-12 01:00:34 +02:00
aromaa ec81c445b3 Fixes for item stackability when removing keys 2023-06-14 15:52:15 +03:00
aromaa 6efb556e0e Copy user options on respawn
Fixes #3822
2023-06-14 15:50:05 +03:00
aromaa 9c28f9b05f Fix block snapshot restoring with world 2023-06-05 20:16:10 +03:00
aromaa e82e19c471 Fixes for desync from interaction cancellation 2023-06-03 01:39:58 +03:00
aromaa 8eb76ac3db Implement ChangeDataHolderEvent.ValueChange for GameMode
Closes #3563
2023-06-02 23:28:09 +03:00
aromaa 10d7d08ef4 Fixes for vanish 2023-05-31 17:36:50 +03:00
aromaa 6b3a8e6c30 Fix tropical fish data 2023-05-31 15:34:45 +03:00
aromaa 2333f8c5fb Implement CollideEntityEvent.Impact for tridents 2023-05-30 23:32:00 +03:00
aromaa c9ae60d929 Populate last damage source correctly 2023-05-30 22:49:35 +03:00
aromaa 654e17faed Fix volume stream arg validation 2023-05-23 18:29:42 +03:00
Anselm Brehme 48a3a90efa Fixes for inventory offer
thanks to @aromaa for the initial work
fixes #3857
2023-05-23 16:41:54 +02:00
aromaa 10dfa6bb12 Add missing call to BlockEntityArchetypeVolume 2023-05-20 19:37:42 +03:00
aromaa 017ae77e0f Fix v2 schematic block entity conversion 2023-05-20 19:26:23 +03:00
aromaa f8a15f81e2 Fixes for schema loading 2023-05-20 11:42:40 +03:00
Yeregorix e1280154d6 Track direct chunk access 2023-05-05 21:33:57 +02:00
aromaa b25f6f68d6 Don't fire events from non chunk IO workers
Fixes #3854
2023-04-26 00:29:06 +03:00
Yeregorix 2796912365 Pass the original StringReader to the Forge CommandEvent 2023-04-24 14:52:44 +02:00
Yeregorix a4ad38b201 Fix forge interactions (#3844)
* Fix Forge right click block

* Cleanup left click block

* Cleanup interact entity

* Use Forge reach distance
2023-04-21 22:10:20 +02:00
Yeregorix 3ec7db154c Support modded light blocks 2023-04-13 19:09:01 +02:00
Yeregorix 7834309b69 Support modded tile entities 2023-04-13 19:09:01 +02:00
Stephan 8fbc8c9936 Prevent invalid status responses with empty/dummy player UUIDs (#3831)
Right now SpongeGameProfile.toMcProfile() converts all SpongeAPI GameProfiles
with empty UUIDs (= new UUID(0, 0)) to authlib GameProfiles with a null UUID.

This is fine in most cases but problematic for the sample/player list in
the status response. Empty UUIDs can be used there to create dummy entries,
to display custom messages in the server list instead of the online players.
(See e.g. https://github.com/Minecrell/ServerListPlus/wiki/Status-Configuration#player-hover-messages)

The Minecraft client completely rejects status responses that contain
GameProfiles with null UUIDs and/or null names. This is why it is
important that the empty UUID is not converted to a null UUID.

Prevent sending invalid responses to the client by making sure both
UUID and name are non-null in the player samples of the status response.

This fixes a regression in API 8 when using the ServerListPlus plugin
on Sponge. The problem was likely introduced in some GameProfile refactoring
(API 7 worked fine).
2023-04-12 16:34:12 +00:00
Connor c19e80ec97 add movement threshold configuration (#3820) 2023-04-01 22:37:44 +00:00
Jesse McKeeandJesse 3821642554 Fix Error related to Banned users with Expiration dates (#3817)
* Resolve date formatting error when expirationDate exists.

* Remove StoredUserListMixin.java
This actually causes a ClassCastException wherein it attempts to cast a String to a GameProfile

* Appease the checker

* revert changes for StoredUserListMixin

* Appease the checker

---------

Co-authored-by: Jesse <jessemckee97@gmail.com>
2023-04-01 22:27:58 +00:00
ZelvaLea(JolyJDIA)andZelvaLea a362f63bf1 removed unnecessary blocking (#3832)
Co-authored-by: ZelvaLea <zelvalea@gmail.com>
2023-04-01 22:22:34 +00:00
Yeregorix 6fbe2b7b4a Fix isFire and doesAffectCreative damage implementation in builders (#3821) 2023-04-01 22:16:47 +00:00
Lexi 1a4027d44f Implement PotionEffect#showIcon (#3826) 2023-02-03 19:33:39 +00:00
aromaa 6ba0d35dc4 Fix ChunkEvent.Save.Post firing too early
The chunk was only scheduled to be saved here and does not yet exists in the storage container
2023-01-30 21:34:59 +02:00
aromaa 3a371bb061 Fixes to serialization behavior
We were marking world unload as manual save, it should be explicitly asked for.

The documentation of ServerWorld#save states that it should return false on SerializationBehavior.NONE.
However still call the events to be consistent with how it works for other sources.

Make sure we set the isManualSave to false in case the save event is cancelled. Otherwise the next call would be errously marked as manual save.

Fixed that we did not do automatic saves on saves marked as manual, we should always on automatic behaviour.
2023-01-21 14:35:39 +02:00
aromaa 9c89669371 Replace player reference to scoreboard on respawn 2023-01-12 23:22:47 +02:00
aromaa d2cbe02f76 Remove impl from ServerLevelMixin
We no longer call bridge and this is causing Entity objects to leak
2023-01-12 22:52:22 +02:00
aromaa 596a630b06 Update armor stands physics on marker or gravity data set
Fixes #3800
2023-01-10 15:44:59 +02:00
Connor Hartley a0600388c5 fix health scaling (#3778) 2023-01-07 19:30:28 -06:00
Yeregorix b4e5748c30 Don't call setPos after movement event when position hasn't changed (#3797) 2023-01-07 19:28:47 -06:00
Joni Aromaa f7c5fe7b97 Fix container click events involving player crafting slots (#3804) 2023-01-07 19:28:24 -06:00