mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
Fix localization name on server
This commit is contained in:
1 parent
ef0f34bc28
commit
9fec88ebc4
2 files changed
+12
No files matched your search
@@ -6,10 +6,12 @@ import net.minecraft.inventory.ISidedInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.crafting.ModifyBuilder;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.modifier.IModifyable;
|
||||
import tconstruct.tools.inventory.ToolForgeContainer;
|
||||
import tconstruct.util.network.ToolStationPacket;
|
||||
|
||||
/*
|
||||
* Simple class for storing items in the block
|
||||
@@ -65,6 +67,10 @@ public class ToolForgeLogic extends ToolStationLogic implements ISidedInventory
|
||||
output = tryRenameTool(output, name);
|
||||
}
|
||||
inventory[0] = output;
|
||||
if (output != null && output.hasDisplayName()) {
|
||||
TConstruct.packetPipeline
|
||||
.sendToServer(new ToolStationPacket(xCoord, yCoord, zCoord, output.getDisplayName()));
|
||||
}
|
||||
}
|
||||
/*
|
||||
* public void buildTool (String name) { toolName = name; ItemStack tool =
|
||||
|
||||
@@ -9,10 +9,12 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import mantle.blocks.abstracts.InventoryLogic;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.crafting.ModifyBuilder;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.modifier.IModifyable;
|
||||
import tconstruct.tools.inventory.ToolStationContainer;
|
||||
import tconstruct.util.network.ToolStationPacket;
|
||||
|
||||
/*
|
||||
* Simple class for storing items in the block
|
||||
@@ -89,6 +91,10 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
|
||||
output = tryRenameTool(output, name);
|
||||
}
|
||||
inventory[0] = output;
|
||||
if (output != null && output.hasDisplayName()) {
|
||||
TConstruct.packetPipeline
|
||||
.sendToServer(new ToolStationPacket(xCoord, yCoord, zCoord, output.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
||||
public void setToolname(String name) {
|
||||
|
||||
Reference in new issue
Block a user