Remove unnecessary method

This commit is contained in:
Marcel Konrad
2020-05-22 14:56:19 +02:00
parent f161867a1a
commit 1fd06221d7

View File

@@ -54,7 +54,7 @@ public abstract class CommandBuilderNBT extends CommandBuilder implements IComma
{
INBT serialized = component.serialize();
if(serialized != null)
if(component.getTag() != null && serialized != null)
{
if(!nbt.contains(component.getTag()))
{
@@ -71,14 +71,9 @@ public abstract class CommandBuilderNBT extends CommandBuilder implements IComma
return nbt;
}
protected <T extends IBuilderComponent> T registerNBTComponent(T component, String id)
public <T extends IBuilderComponent> T registerNBTComponent(T component)
{
this.TAG_TO_COMPONENT.add(component);
return component;
}
protected <T extends IBuilderComponent> T registerNBTComponent(T component)
{
return this.registerNBTComponent(component, component.getTag());
}
}