Elite Centrifuge cannot be accessed with empty hand.
AdamNisbett opened this issue · 10 comments
The Elite Centrifuge (and maybe other centrifuges - haven't tested) doesn't open the interface if right clicked with an empty hand.
To Reproduce
- Create Elite multiblock centrifuge
- right click with empty hand
- nothing happens
- right click with non-empty hand and interface opens.
Expected behavior
Centrifuge interface opens when right clicking with empty hand.
please complete the following information:
- Forge-1.16.5-36.1.0
- Mod Version 1.16.5-0.6.5b
Additional context
On Enigmatica 6 official server (Enigmatica 6 0.4.7 modpack)
Make sure the multiblock is a valid multiblock and you are not holding down shift
I'm certain it was valid as I could access it when holding an item and I wasn't holding shift.
However I cannot reproduce the issue now, so not sure what was wrong. Perhaps server TPS was lagging.
Nevermind. Still unable to access with empty hand after processing finished. No idea what's the difference between when I can and can't access it.
if (controller != null && controller.isValidStructure()) {
if (hasCapability) {
controller.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY)
.ifPresent(iFluidHandler -> FluidUtil.interactWithFluidHandler(player, hand, world, pos, null));
} else if (!player.isShiftKeyDown() && !world.isClientSide) {
NetworkHooks.openGui((ServerPlayerEntity) player, controller, pos);
}
return ActionResultType.SUCCESS;
}
That’s the code for opening the GUI on the multiblock centrifuges. Casings use the same logic but call the GUI for the controller block. There’s nothing there that would prevent it from displaying when using an empty hand other than the multiblock being valid. Use /data get on the controller and check the nbt data. See if it’s showing as valid. If it’s not and it’s built correctly then we have a different bug.
It's back to working again after waystoning back to see if I could figure out what you suggested. Not sure if I'd be able to do that or not anyway as I'm playing on a server and don't have any particular admin command access.
However, the multiblock is certainly valid as I can easily open and use it when holding an item whenever this happens. It is a modpack with a number of other mods, so perhaps code from some other mod is interfering? I may go ahead and link this issue on the Enigmatica issue tracker to see if they have any ideas.
Any more issues with this? Any logs generated yet that can be used to identify if the issue is related to the one referenced in the linked issue?
I have not had the issue repeat since my last post, but I also haven’t been on the server much in the last couple weeks.