I have an old PC world which seems to be causing crashes. I've tested this on a clean install, so i know it's the map's fault. What Can I do to prevent it issue from occurring?
If this happens with no plugins then personally I'd be tempted to modify https://github.com/pmmp/PocketMine-...2f2ef/src/pocketmine/nbt/tag/ShortTag.php#L69 to compress the value when greater than 2**15 - 1 instead of throwing an exception, which might fix the issue once for the map once the entity is saved again with a valid value. I'm only guessing, but maybe the PC version uses unsigned values for PickupDelay - I would use unsigned for a delay, if I had the choice - but PHP doesn't do unsigned integers so maybe that's how your map ended up with an invalid value.