Rewrite IBindable to provide an object instead of storing 2 strings
This commit is contained in:
parent
941173dbf4
commit
2a43e53842
47 changed files with 416 additions and 510 deletions
|
@ -50,8 +50,7 @@ public class BlockRitualController extends BlockEnum<EnumRitualController> imple
|
|||
|
||||
if (state.getValue(getProperty()) != EnumRitualController.IMPERFECT && tile instanceof TileMasterRitualStone) {
|
||||
if (heldItem.getItem() == RegistrarBloodMagicItems.ACTIVATION_CRYSTAL) {
|
||||
IBindable bindable = (IBindable) heldItem.getItem();
|
||||
if (Strings.isNullOrEmpty(bindable.getOwnerName(heldItem)))
|
||||
if (((IBindable) heldItem.getItem()).getBinding(heldItem) == null)
|
||||
return false;
|
||||
|
||||
String key = RitualHelper.getValidRitual(world, pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue