Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
make bit mask protected
TODO same for BIT_OFFSET
Dieser Commit ist enthalten in:
Ursprung
b24ebaf6f2
Commit
808d32bc85
@ -66,7 +66,8 @@ public class AsyncBlock implements Block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getTypeId() {
|
public int getTypeId() {
|
||||||
return (queue.getCachedCombinedId4Data(x, y, z, BlockTypes.AIR.getInternalId()) & BlockTypes.BIT_MASK);
|
int id = (queue.getCachedCombinedId4Data(x, y, z, BlockTypes.AIR.getInternalId()));
|
||||||
|
return BlockTypes.getFromStateId(id).getInternalId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -795,7 +795,7 @@ public final class BlockTypes {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public static final int BIT_OFFSET; // Used internally
|
public static final int BIT_OFFSET; // Used internally
|
||||||
public static final int BIT_MASK; // Used internally
|
protected static final int BIT_MASK; // Used internally
|
||||||
|
|
||||||
private static final Map<String, BlockType> $REGISTRY = new HashMap<>();
|
private static final Map<String, BlockType> $REGISTRY = new HashMap<>();
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren