Fixed applying the type of tunnel for P2P tunnels.

This was caused by the enforced lowercase mod id's and item names since 1.11.
This commit is contained in:
Gunther De Wachter
2017-07-12 06:04:06 +02:00
parent fe213e5ac5
commit eb11845a2f
3 changed files with 21 additions and 18 deletions
@@ -26,6 +26,7 @@ package appeng.api.features;
import javax.annotation.Nullable;
import com.sun.istack.internal.NotNull;
import net.minecraft.item.ItemStack;
import appeng.api.config.TunnelType;
@@ -44,7 +45,7 @@ public interface IP2PTunnelRegistry
* @param trigger - the item which triggers attunement. Nullable, but then ignored
* @param type - the type of tunnel. Nullable, but then ignored
*/
void addNewAttunement( @Nullable ItemStack trigger, @Nullable TunnelType type );
void addNewAttunement( @NotNull ItemStack trigger, @Nullable TunnelType type );
/**
* returns null if no attunement can be found.
@@ -53,6 +54,6 @@ public interface IP2PTunnelRegistry
*
* @return null if no attunement can be found or attunement
*/
@Nullable
@NotNull
TunnelType getTunnelTypeByItem( ItemStack trigger );
}