Dislocator Receptable does not recognize an Advanced Dislocator as a valid dislocator
depressed-pho opened this issue ยท 2 comments
Base information
- Minecraft version: 1.12.2
- Mod version: 2.3.13.306
Description
Advanced Dislocator can be stored in Dislocator Receptable but it doesn't actually activate the portal.
Steps to reproduce
- Register a location to an Advanced Dislocator and select it.
- Right-click a receptable while holding the dislocator.
- The dislocator gets stored in the receptable, but the portal doesn't activate.
Possible cause
public TeleportLocation getLocation(ItemStack stack, World world) {
public Teleporter.TeleportLocation getLocation(ItemStack stack) {
The latter doesn't actually override the former so the wrong implementation of getLocation
is used by the receptable. Haven't tested the Pedestrial yet but it's likely to be affected as well.
This also seems to affect the receptor cloning recipe.
Steps to reproduce
- Place a configured Advanced Dislocator onto the first slot of a crafting table.
- Place an empty Dislocator onto the second slot of a crafting table.
- No crafting results are shown.
RecipeDislocatorClone.java:56:
TeleportLocation location = ((Dislocator) source.getItem()).getLocation(source, null);
if (location == null) {
return ItemStack.EMPTY;
}