Limit arrows sticking to 127
This commit is contained in:
parent
d5913354e4
commit
b3deaa9b70
@ -146,11 +146,11 @@ public class LivingWatcher extends FlagWatcher {
|
||||
}
|
||||
|
||||
public int getArrowsSticking() {
|
||||
return (int) getData(MetaIndex.LIVING_ARROWS);
|
||||
return getData(MetaIndex.LIVING_ARROWS);
|
||||
}
|
||||
|
||||
public void setArrowsSticking(int arrowsNo) {
|
||||
setData(MetaIndex.LIVING_ARROWS, arrowsNo);
|
||||
setData(MetaIndex.LIVING_ARROWS, Math.max(0, Math.min(127, arrowsNo)));
|
||||
sendData(MetaIndex.LIVING_ARROWS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user