mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 18:44:42 +00:00
Fix Crafting Input Bus Compatibility & fix general bugs (#154)
* fix: uses IInterfaceTerminalSupport for interface terminal
fix custom target not registered in ae2fc wireless interface terminal
* fix: empty string caused channel crash && check if custom name exist before getting
* fix: Fluid interface not registered
* Revert "fix: Fluid interface not registered"
This reverts commit bc21ee2673.
* fix: remove ASM in favor of the new API
* fix: remove zero size character bypass as checking hasCustomName is enough
This commit is contained in:
1 parent
98ff754306
commit
bcdd765870
6 files changed
+85
-162
No files matched your search
@@ -97,11 +97,15 @@ public class CPacketRenamer implements IMessage {
|
||||
|
||||
public static class Handler implements IMessageHandler<CPacketRenamer, IMessage> {
|
||||
|
||||
private String getName(ICustomNameObject obj) {
|
||||
return obj.hasCustomName() ? obj.getCustomName() : "";
|
||||
}
|
||||
|
||||
private String getName(TileEntity tile, ForgeDirection side) {
|
||||
if (tile instanceof TileCableBus) {
|
||||
return ((ICustomNameObject) ((TileCableBus) tile).getPart(side)).getCustomName();
|
||||
return getName((ICustomNameObject) ((TileCableBus) tile).getPart(side));
|
||||
} else {
|
||||
return ((ICustomNameObject) tile).getCustomName();
|
||||
return getName((ICustomNameObject) tile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user