mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix custom name for crates opened from hand
This commit is contained in:
parent
997fb20129
commit
8a7934d274
@ -122,7 +122,11 @@ public class ItemBlockStorageCrate extends ItemBlockBase implements IGUIProvider
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return findCrateType(target.getItem()).getInventoryName();
|
||||
TileEntityCrateBase tile = findCrateType(target.getItem());
|
||||
if (hasCustomInventoryName()) {
|
||||
tile.setCustomName(target.getDisplayName());
|
||||
}
|
||||
return tile.getInventoryName();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user