Mappings
This commit is contained in:
parent
389b716880
commit
f5c6b59ebd
79 changed files with 163 additions and 204 deletions
|
@ -86,7 +86,7 @@ public class FluidBlockModelHandler {
|
|||
}
|
||||
|
||||
private static void registerFluidBlockModel(BlockFluidTechReborn block) {
|
||||
String name = block.getUnlocalizedName().substring(5).toLowerCase();
|
||||
String name = block.getTranslationKey().substring(5).toLowerCase();
|
||||
Item item = Item.getItemFromBlock(block);
|
||||
ModelResourceLocation location = new ModelResourceLocation(
|
||||
new ResourceLocation(ModInfo.MOD_ID.toLowerCase(), "fluids"), name);
|
||||
|
|
|
@ -83,7 +83,7 @@ public class StackToolTipEvent {
|
|||
try {
|
||||
Block block = Block.getBlockFromItem(item);
|
||||
if (block != null && (block instanceof BlockContainer || block instanceof ITileEntityProvider)
|
||||
&& block.getRegistryName().getResourceDomain().contains("techreborn")) {
|
||||
&& block.getRegistryName().getNamespace().contains("techreborn")) {
|
||||
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().world,
|
||||
block.getStateFromMeta(event.getItemStack().getItemDamage()));
|
||||
if (tile instanceof IListInfoProvider) {
|
||||
|
|
|
@ -80,10 +80,10 @@ public class TRRecipeHandler {
|
|||
if (recipe.getRegistryName() == null) {
|
||||
return false;
|
||||
}
|
||||
if (!recipe.getRegistryName().getResourceDomain().equals(ModInfo.MOD_ID)) {
|
||||
if (!recipe.getRegistryName().getNamespace().equals(ModInfo.MOD_ID)) {
|
||||
return false;
|
||||
}
|
||||
if (!recipe.getRecipeOutput().getItem().getRegistryName().getResourceDomain().equals(ModInfo.MOD_ID)) {
|
||||
if (!recipe.getRecipeOutput().getItem().getRegistryName().getNamespace().equals(ModInfo.MOD_ID)) {
|
||||
return false;
|
||||
}
|
||||
if (hiddenEntrys.contains(recipe.getRecipeOutput().getItem())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue