mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-23 23:38:41 +01:00
formatting code
This commit is contained in:
parent
0152107a06
commit
0a9470acb8
1 changed files with 3 additions and 3 deletions
|
@ -120,14 +120,14 @@ public class AnvilInventoryTranslator extends BlockInventoryTranslator {
|
|||
|
||||
@Override
|
||||
public void updateSlot(GeyserSession session, Inventory inventory, int slot) {
|
||||
if(slot >= 0 && slot <= 2){
|
||||
if (slot >= 0 && slot <= 2) {
|
||||
ItemStack item = inventory.getItem(slot);
|
||||
if(item != null){
|
||||
if (item != null) {
|
||||
String rename;
|
||||
CompoundTag tag = item.getNbt();
|
||||
if (tag != null) {
|
||||
CompoundTag displayTag = tag.get("display");
|
||||
if(displayTag != null){
|
||||
if (displayTag != null) {
|
||||
String itemName = displayTag.get("Name").getValue().toString();
|
||||
Message message = Message.fromString(itemName);
|
||||
rename = message.getText();
|
||||
|
|
Loading…
Reference in a new issue