Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Chinese translation, fix Chinese wrapping bug #6

Open
wants to merge 2 commits into
base: MC1.12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ private byte shouldSplit(char start, char here) {
if (Character.isWhitespace(start) ^ Character.isWhitespace(here)) {
ret = 0b10;
}
if(Character.UnicodeScript.of(here) == Character.UnicodeScript.HAN) {
ret = 0b10;
}
if (here == '<') {
ret = 0b10;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ private void update(boolean changedMax) {
}

private int roundHysteresis(int old, double newExact) {
double mod = newExact%1;
final double THRESHOLD = .1;
int floor = (int) Math.floor(newExact);
if (floor == old) {
return old;
}
if (old<newExact && mod>THRESHOLD) {
if(old < 0) {
return floor;
} else if (old>newExact && mod<1-THRESHOLD) {
}
if (newExact > old + 1 + THRESHOLD || newExact < old - THRESHOLD) {
return floor;
}
return old;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public List<BlockFace> getEnergyConnections() {
}

protected double getMaxBuffer() {
return 10e3;//200kW
return 87148.9361702F;//4096RF
}

protected boolean has4Phases() {
Expand Down
Loading