mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-21 23:13:28 +01:00
Use tooltip context of Atomic Reconstructor (#1415)
This commit is contained in:
parent
0ac1e81d0e
commit
ae60e77a2c
1 changed files with 2 additions and 2 deletions
|
@ -163,8 +163,8 @@ public class BlockAtomicReconstructor extends FullyDirectionalBlock.Container im
|
|||
|
||||
if (this.lastSysTime + 3000 < sysTime) {
|
||||
this.lastSysTime = sysTime;
|
||||
if (Minecraft.getInstance().level != null) {
|
||||
RandomSource random = Minecraft.getInstance().level.random;
|
||||
if (context.level() != null) {
|
||||
RandomSource random = context.level().random;
|
||||
this.toPick1 = random.nextInt(NAME_FLAVOR_AMOUNTS_1) + 1;
|
||||
this.toPick2 = random.nextInt(NAME_FLAVOR_AMOUNTS_2) + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue