Oak Stairs doesn't work.

Published by Goldorion on
Status
Fixed
Issue description

Hi,

With procedures, we can choose to add or remove blocks or items in player's inventory, but when I try to select oak stairs, it doesn't work. I think that it's becaus the "id" of oak stairs in the software is oak_stairsstairs (look the screen). I give you my workspace becauee it's maybe only me, but look procedure named "TestCommandExecuted" (it's the procedure for "/test" command.

 

I looked in the code, and what I thought was true. Instead to be

Entity entity = (Entity) dependencies.get("entity");
		if (entity instanceof EntityPlayer)
			ItemHandlerHelper.giveItemToPlayer(((EntityPlayer) entity), new ItemStack(Blocks.OAK_STAIRS, (int) (1)));
Entity entity = (Entity) dependencies.get("entity");
		if (entity instanceof EntityPlayer)
			ItemHandlerHelper.giveItemToPlayer(((EntityPlayer) entity), new ItemStack(Blocks.AIR, (int) (1)));

(The first is what it is supposed to have and the second is what the software does.)

We can see that MCreator do ... new ItemStack(Blocks.AIR, (int) (1))); instead of ...new ItemStack(Blocks.OAK_STAIRS, (int) (1)));.

 

So, if you can correct this bug, it would be nice !

 

Goldorion

P-S : Here it's the link of my workspace because I can't put it here because he weighs 13,6 MB, so it is too big. https://www.mediafire.com/file/pned70vdo5o6nq5/2.0_Non-Final.mcr/file

 

Issue comments

I have checked and indeed the box is being empty due to the typo in our block list. I will fix this issue in MCreator 1.9.0. Thank you for your detailed report which helped to solve the problem quickly :)