mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix Block.cs constructor ambiguity
World.cs GetBlock() was calling the wrong one (id+meta), causing InvalidOperationException when global Palette does not support setting metadata. See #716
This commit is contained in:
parent
0d58fb9063
commit
4c1640bc5b
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ namespace MinecraftClient.Mapping
|
|||
/// </summary>
|
||||
/// <param name="type">Block type</param>
|
||||
/// <param name="metadata">Block metadata</param>
|
||||
public Block(short type, byte metadata = 0)
|
||||
public Block(short type, byte metadata)
|
||||
{
|
||||
if (!Palette.IdHasMetadata)
|
||||
throw new InvalidOperationException("Current global Palette does not support block Metadata");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue