Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jul 4, 2018
1 parent 42cc842 commit 63886b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Expand Up @@ -63,7 +63,7 @@ public List<String> getWailaBody(ItemStack itemStack, List<String> current, IWai

// if we were given a color string, show it
if(colorString != null && accessor.getPlayer().isSneaking()) {
current.add(Util.translateFormatted("gui.waila.inspirations.cauldron.color", colorString));
current.add(Util.translateFormatted("gui.inspirations.cauldron.color", colorString));
}
}
return current;
Expand Down
Expand Up @@ -99,9 +99,7 @@ public int damageDropped(IBlockState state) {

@Override
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) {
if(placer.isSneaking()) {
facing = facing.getOpposite();
}
facing = facing.getOpposite();
// only allow up if allowed in the config
if (!Config.pipeUpwards && facing == EnumFacing.UP) {
facing = EnumFacing.DOWN;
Expand Down
Expand Up @@ -81,6 +81,12 @@ public void collect(EnumFacing facing) {
world.playEvent(collected ? 1000 : 1001, pos, 0);
}

@Override
public boolean isItemValidForSlot(int slot, @Nonnull ItemStack itemstack) {
// mantle checks stack size which breaks some things when using stacks bigger than 1
return slot < getSizeInventory();
}

/*
* GUI
*/
Expand Down

0 comments on commit 63886b1

Please sign in to comment.