mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
Repeating controls
- Fix lectern controllers causing a stack overflow
This commit is contained in:
parent
eb4d78f621
commit
5a1c6890d2
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import net.minecraft.world.level.Level;
|
|||
import net.minecraft.world.level.block.entity.BlockEntityType;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.common.ForgeMod;
|
||||
|
@ -70,7 +71,7 @@ public class LecternControllerBlockEntity extends SmartBlockEntity {
|
|||
}
|
||||
|
||||
public ItemStack getController() {
|
||||
return getController();
|
||||
return createLinkedController();
|
||||
}
|
||||
|
||||
public boolean hasUser() { return user != null; }
|
||||
|
|
Loading…
Add table
Reference in a new issue