mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix issue saving observers using different metadata then vanilla.
This commit is contained in:
1 parent
8803bf9a29
commit
52702e5cc9
1 file changed
+3
@@ -26,6 +26,7 @@ import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Multimap;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockAir;
|
||||
import net.minecraft.block.BlockObserver;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -308,6 +309,8 @@ public class GameData
|
||||
|
||||
for (int meta = 0; meta < 16; meta++)
|
||||
{
|
||||
if (block.getClass() == BlockObserver.class)
|
||||
continue; //Observers are bad and have non-cyclical states. So we HAVE to use the vanilla logic above.
|
||||
if (usedMeta[meta])
|
||||
blockstateMap.put(block.getStateFromMeta(meta), id << 4 | meta); // Put the CORRECT thing!
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user