Fixed world border and loot chests

This commit fixes two bugs:
* Loot chests couldn't be created. If you managed to do it somehow, they
were empty.
* The world border didn't work.