mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
#872: SculkSensor accesses underlying TileEntity instead of snapshot for vibration frequency.
This commit is contained in:
parent
887bc05190
commit
295ab080d3
1 changed files with 2 additions and 2 deletions
|
@ -18,12 +18,12 @@ public class CraftSculkSensor extends CraftBlockEntityState<SculkSensorBlockEnti
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getLastVibrationFrequency() {
|
public int getLastVibrationFrequency() {
|
||||||
return getTileEntity().getLastVibrationFrequency();
|
return getSnapshot().getLastVibrationFrequency();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLastVibrationFrequency(int lastVibrationFrequency) {
|
public void setLastVibrationFrequency(int lastVibrationFrequency) {
|
||||||
Preconditions.checkArgument(0 <= lastVibrationFrequency && lastVibrationFrequency <= 15, "Vibration frequency must be between 0-15");
|
Preconditions.checkArgument(0 <= lastVibrationFrequency && lastVibrationFrequency <= 15, "Vibration frequency must be between 0-15");
|
||||||
getTileEntity().lastVibrationFrequency = lastVibrationFrequency;
|
getSnapshot().lastVibrationFrequency = lastVibrationFrequency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue