EntityReborn / CHVirtualChests

A virtual chest implementation extension for CommandHelper.
MIT License
0 stars 5 forks source link

get_virtualchest should return null if no virtual chest exists #4

Closed MariuszT closed 11 years ago

MariuszT commented 11 years ago

So that I can check if selected virtual chest exists

EntityReborn commented 11 years ago

Kookster actually specifically requested that this return a new chest if one didn't exist, and all_virtualchests exists for a reason ;)

MariuszT commented 11 years ago

Don't you think so it's better to do it this way?

if (get_virtualchest('name') == null) { create_virtualchest(...options...) }

EntityReborn commented 11 years ago

Had a chat with Kookster, he's ok with this. Will merge.