andrepl / BuildInABox

Carry prefab buildings in enderchests.
3 stars 6 forks source link

Problems with Biab and Shopkeepers #29

Open Chakyl opened 11 years ago

Chakyl commented 11 years ago

Test 1: Iron fence

1.) Buy multiple biab using the plugin Shopkeepers (http://dev.bukkit.org/bukkit-plugins/shopkeepers/) 2.) Un-separate from stack, place three. 3.) Lock the first one placed 4.) Try to lock other two, they are already locked (Without me doing so) 5.) Try to unlock other two, they refuse. 6.) Unlock the first 7.) Look at other two, they are suddenly unlocked. 8.) Attempt to remove the second one, first one gets removed 9.) Other two refuse to do anything. 10.) Look at console, see this error: http://pastie.org/8079467 11.) Restart server 12.) Two existing biab's are now breakable.

Test 2: Prop Helicopter

Same test, same results

Test 3: Spawing in the Iron Fence using /biab give 1.) /biab give ironfence 2.) Un-separate from stack, place three. 3.) Lock the first one placed 4.) lock other two 5.) Unlock them all 6.) Everything works as intended.

So it seems to be a problem with my distribution system (Shopkeepers), which I rather like and I use for other items. Another problem with itemstacks regardless of the method you get them is that if you place a biab that is stacked, it will place all of them at the same time (E.g, I buy three iron fences in a stack, I place the stacked box, and it turns into a single biab).

EDIT: It seems like all of the biabs from the shopkeeper shop are connected, no matter how/if you stack them. It could be a problem with biab or shopkeepers.

andrepl commented 11 years ago

just wanted to comment here and say its definitely something I'm going to look into further, there's certainly some buggy behaviour with how its handling being stacked, I should be do something about it, but its a fairly complicated issue. I want to get a new version out this weekend so I'll defintely be looking into this.