mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 10:56:42 +00:00
Fixed the bundle being directly used outside of the registry system.
This commit is contained in:
@ -101,11 +101,11 @@ public class BlockType {
|
||||
* @return The name, or ID
|
||||
*/
|
||||
public String getName() {
|
||||
BundledBlockData.BlockEntry entry = BundledBlockData.getInstance().findById(this.id);
|
||||
if (entry == null) {
|
||||
String name = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS).getRegistries().getBlockRegistry().getName(this);
|
||||
if (name == null) {
|
||||
return getId();
|
||||
} else {
|
||||
return entry.localizedName;
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user