mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-15 21:01:26 +01:00
Fix #508
This commit is contained in:
parent
cf5d9dfc7d
commit
8ec31d83db
@ -143,7 +143,7 @@ public abstract class WrappedBlockData extends AbstractWrapper {
|
||||
}
|
||||
|
||||
private static WrappedBlockData createNewData(Material material, int data) {
|
||||
return new NewBlockData(FROM_LEGACY_DATA.invoke(material, (byte) data));
|
||||
return new NewBlockData(FROM_LEGACY_DATA.invoke(null, material, (byte) data));
|
||||
}
|
||||
}
|
||||
|
||||
@ -327,4 +327,4 @@ public abstract class WrappedBlockData extends AbstractWrapper {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user