PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.26k stars 660 forks source link

DoubleTag Chest #4180

Closed inxomnyaa closed 6 years ago

inxomnyaa commented 8 years ago
    static::$default[static::DOUBLE_CHEST] = new InventoryType(27 + 27, "DoubleTag Chest", 0);

in InventoryType.php

legoboy0215 commented 8 years ago

I believe this happened because shog tried replacing all NBT tags from Double to DoubleTag, but he forgot to revert this.

jojoe77777 commented 8 years ago

There's also EndTag Stone somewhere ;)

legoboy0215 commented 8 years ago

Yah. I actually made a program so it actually fixes all of that.

inxomnyaa commented 8 years ago

There is even DoubleTag Plant :P

PrimusLV commented 8 years ago

Naughty "search n replace" function.

SOF3 commented 8 years ago

That's confusing. He could have used PhpStorm of older versions (that do not support PHP 7 yet) to refactor class Double into DoubleTag directly :confused: