mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
Clean up description localization (Fixes #104). Fix cloud rendering.
This commit is contained in:
1 parent
1920feeb1d
commit
e8a0dc008f
6 files changed
+843
-825
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.cricketcraft.chisel.carving;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
import com.cricketcraft.chisel.client.render.TextureSubmap;
|
||||
@@ -8,7 +9,7 @@ import com.cricketcraft.chisel.client.render.TextureSubmap;
|
||||
public class CarvableVariation {
|
||||
|
||||
public String blockName;
|
||||
public String description;
|
||||
private String description;
|
||||
public int metadata;
|
||||
public int kind;
|
||||
|
||||
@@ -28,6 +29,14 @@ public class CarvableVariation {
|
||||
public TextureSubmap submap;
|
||||
public TextureSubmap submapSmall;
|
||||
|
||||
public String getDescription() {
|
||||
return I18n.format(description);
|
||||
}
|
||||
|
||||
public void setDescriptionUnloc(String desc) {
|
||||
this.description = desc;
|
||||
}
|
||||
|
||||
static class CarvableVariationCTM {
|
||||
|
||||
TextureSubmap seams[] = new TextureSubmap[3];
|
||||
|
||||
Reference in new issue
Block a user