Dylan K. Taylor
566e4a4196
VanillaItems generator now reverse-lookups ID constants instead of baking numeric IDs into the code
...
this makes it easier to spot errors.
there's nothing we can do about the metadata values, but IDs can be quite easily constified.
there might be some weird artifacts where constants are aliased (e.g. appleenchanted) , but this is inarguably better than baking numeric IDs.
2022-02-26 16:10:34 +00:00
Dylan K. Taylor
a95749f968
Now using new repository for block upgrade schemas
2022-02-22 22:09:47 +00:00
Dylan K. Taylor
3232a83965
InventoryManager: beware possible crash due to invalid items
2022-02-22 16:50:36 +00:00
Dylan K. Taylor
c816bbdb6e
Remove unused import that php-cs-fixer doesn't see
2022-02-22 16:46:23 +00:00
Dylan K. Taylor
4f25ab10e9
InventoryManager: Do not sync slots the client correctly predicted during using items
...
closes #4825
2022-02-22 16:46:23 +00:00
Dylan K. Taylor
75d4c47384
LevelDB: fixed incorrectly writing always newest protocol version in world saves
...
this made it impossible to tell the difference between PM worlds and bedrock worlds modified post-1.12.
2022-02-20 21:08:31 +00:00
Dylan K. Taylor
bd4c2b5245
MemoryManager: scrub string keys for dumping
...
fixes crashes such as https://crash.pmmp.io/view/5986490
this also ensures that the order of elements is maintained when decoded by another software.
2022-02-20 20:54:03 +00:00
Dylan K. Taylor
d60dba2de0
DumpMemoryCommand: fixed memory dump dir
2022-02-20 20:39:53 +00:00
Dylan K. Taylor
51a3043dfd
PlayerInventory: fixed isHotbarSlot() returning bogus result for 9
2022-02-20 20:29:51 +00:00
Dylan K. Taylor
5415ca2fa9
Merge branch 'next-minor' into modern-world-support
2022-02-19 20:36:20 +00:00
Dylan K. Taylor
7098bcec8c
4.2.2 is next
2022-02-19 20:20:58 +00:00
Dylan K. Taylor
6d65512531
Release 4.2.1
2022-02-19 20:20:58 +00:00
Dylan K. Taylor
3ed336fa0e
Merge branch 'stable' into next-minor
2022-02-19 20:16:49 +00:00
Dylan K. Taylor
b26b1cd32f
Fixed swimming hitbox glitch
...
fixes #4815
relates to Sandertv/gophertunnel#88
2022-02-19 20:14:17 +00:00
Muqsit Rayyan
55dfacea8d
Item: Improve performance of nbtSerialize() ( #4831 )
...
Replace hasNamedTag() with $nbt->count() > 0
This avoids a duplicate indirect call to Item::serializeCompoundTag() method call when serializing items with namedtags.
2022-02-16 00:32:12 +00:00
Dylan K. Taylor
e98cf39b47
cs
2022-02-11 21:18:56 +00:00
Dylan K. Taylor
bc46e148df
Updated to support new tag storage format
2022-02-11 21:13:28 +00:00
Dylan K. Taylor
905eee3198
BlockStateUpgrader: do not apply backwards-incompatible schemas to blockstates already on the correct version
...
this notably led to corruption of glow_lichen and sculk_vein in 1.18.10.
2022-02-10 20:51:31 +00:00
Dylan K. Taylor
8a11ed70e3
improve reusability
2022-02-10 19:38:50 +00:00
Dylan K. Taylor
db9d769db6
fix CS #2
2022-02-10 13:49:40 +00:00
Dylan K. Taylor
0a0383d9bd
BlockStateUpgradeSchema: added isEmpty()
2022-02-10 13:03:29 +00:00
Dylan K. Taylor
7e903fde5b
Fixed multiple players being able to sleep in the same bed
2022-02-10 00:57:43 +00:00
Dylan K. Taylor
1b3e50d0a3
Implement support for remappedPropertyValuesIndex schema format
2022-02-10 00:00:01 +00:00
Dylan K. Taylor
dc5ddf1c1b
make the build pass
2022-02-09 20:18:38 +00:00
Dylan K. Taylor
03cf635adc
Removed pointless array cast
2022-02-09 20:17:28 +00:00
Dylan K. Taylor
0ce3f763db
reEEEEEEEEEEEEEEEEE
2022-02-09 20:13:59 +00:00
Dylan K. Taylor
0226f5466c
Added support for upgrading states via remap (needed for end rods and all-sided-logs)
2022-02-09 20:05:20 +00:00
Dylan K. Taylor
166ffe430a
Updated for 1.18.10
2022-02-08 22:56:04 +00:00
Dylan K. Taylor
1905f87942
Merge branch 'next-minor' into modern-world-support
2022-02-08 22:25:46 +00:00
Dylan K. Taylor
d702113fb5
Merge branch 'stable' into next-minor
2022-02-08 22:23:00 +00:00
Dylan K. Taylor
4f44a067b0
4.2.1 is next
2022-02-08 20:14:19 +00:00
Dylan K. Taylor
44818e6d14
Release 4.2.0
2022-02-08 20:14:19 +00:00
Dylan K. Taylor
325131dd30
Protocol changes for 1.18.10
2022-02-08 20:08:15 +00:00
Dylan K. Taylor
1eb59fb9b5
4.1.1 is next
2022-02-07 19:22:54 +00:00
Dylan K. Taylor
1c60aa9769
Release 4.1.0
2022-02-07 19:22:53 +00:00
Dylan K. Taylor
fe2c3d08a0
Reduce memory footprint of state remapping tables
...
this becomes a significant problem when expanding metadata size.
2022-02-07 17:31:41 +00:00
Dylan K. Taylor
7a0f62ce5a
Merge branch 'next-minor' into modern-world-support
2022-02-07 17:23:19 +00:00
Dylan K. Taylor
735e4cc3bc
Merge branch 'staging/4.1' into next-minor
2022-02-07 17:22:42 +00:00
Dylan K. Taylor
e9dd9df0a0
Merge remote-tracking branch 'origin/stable' into staging/4.1
2022-02-07 17:22:18 +00:00
Dylan K. Taylor
256826d9c7
Fixed uninitialized color fields of stained glass, stained clay and stained hardened glass
2022-02-07 15:39:54 +00:00
Dylan K. Taylor
c273b29dec
BambooSapling: fixed wrong bit being used for readiness
...
closes #4809
2022-02-07 15:38:05 +00:00
Dylan K. Taylor
e58b3ba46c
First look at loading 1.13+ worlds
2022-02-07 03:06:59 +00:00
Dylan K. Taylor
dd3b79b142
phpstorm sucks
2022-02-07 02:50:43 +00:00
Dylan K. Taylor
863f9560b0
RuntimeBlockMapping: make fallbackStateData not useless
2022-02-07 02:49:19 +00:00
Dylan K. Taylor
f870568e62
fix RuntimeBlockMapping
2022-02-07 02:46:50 +00:00
Dylan K. Taylor
9e03136861
fix CS
2022-02-07 02:43:57 +00:00
Dylan K. Taylor
1b48603d07
another vague commit restructuring stuff
2022-02-07 02:41:50 +00:00
Dylan K. Taylor
4e6fb4b12c
Merge branch 'next-minor' into modern-world-support
2022-02-07 02:22:47 +00:00
Dylan K. Taylor
c19a038d47
LevelDB: Added a whole bunch of constants
2022-02-07 00:54:00 +00:00
Dylan K. Taylor
95bc013e97
Merge branch 'staging/4.1' into next-minor
2022-02-06 23:56:47 +00:00