Closed danilopucci closed 2 years ago
Code looks fine. I don't have any 7.6 map to check, if it works. @danilopucci
.isRune()
check next to stackable
.
if (iType.stackable || iType.isSplash() || iType.isFluidContainer()) {
@gesior 1 - Yeah, it is a bit confusing. On my titles I mean about OTBM version 1 (header=0). This link is a coding reference and this other one is a usage reference 2 - Yes, I tested with runes on floor and after your comment I put a rune inside a chest. I made a search about the isRune() but I didnt find anything. The closer I found was a checkage of isCharged() but it is on Item Attributes and for client version > 820. According to this RME reference, the runes charges are not going to be saved as this.
I am attaching the map that I tested and made the runes/chest modifications map_test.zip
I'll merge this, what can happen right?
Pull Request Prelude
Protocol version 7.72
Changes Proposed
This pull-request adds retrocompatibility to 7.6 .otbm map version (version = 1). The changes are basically reading properly the count variable after splashes/fluidcontainers and stackables when the otbm version = 1. Also, adds the reading os ITEM_GROUP on switch-case statement while reading items.otb
Issues addressed:
118