BlockObjectToStateSerializer: Allow serializers to return an ID string directly instead of a BlockStateWriter instance #6675
Labels
Category: API
Related to the plugin API
Category: Core
Related to internal functionality
Performance
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Link to crashdump
https://crash.pmmp.io/view/12462321
Additional comments (optional)
Most common blocks don't need to store any properties. In these cases we can avoid redundant object allocations by allowing the serializer handlers to just return IDs directly.
This crashdump was likely caused by a mistake, but the idea is a good one.
The text was updated successfully, but these errors were encountered: