Skip to content

Commit

Permalink
Fix Forge fluids not serializing properly. Closes MinecraftForge#3152
Browse files Browse the repository at this point in the history
  • Loading branch information
LexManos committed Aug 2, 2016
1 parent f4e8804 commit 7c4ffde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/net/minecraftforge/fluids/BlockFluidBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ public int getMetaFromState(IBlockState state)
{
return state.getValue(LEVEL);
}
@Deprecated
public IBlockState getStateFromMeta(int meta)
{
return this.getDefaultState().withProperty(LEVEL, meta);
}

public BlockFluidBase setQuantaPerBlock(int quantaPerBlock)
{
if (quantaPerBlock > 16 || quantaPerBlock < 1) quantaPerBlock = 8;
Expand Down

0 comments on commit 7c4ffde

Please sign in to comment.