You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.
privatefinalList<String> m = Arrays.asList("Sumo", "Space Mine", "White Crystal");
UPDATE:
Got things fixed myself, the new map is actually higher up than the others (by 7 blocks)
Just made the following method:
privateinthigher() {
if (Utils.Client.isHyp()) {
for (Stringl: Utils.Client.getPlayersFromScoreboard()) {
Strings = Utils.Java.str(l);
if (s.startsWith("Map:")) {
StringmapName = s.substring(5);
if (mapName.equalsIgnoreCase("Fort Royale")) {
return7; // because the map is 7 blocks higher
}
}
}
}
return0; // other maps should be at the default height value
}
Here is the updated t method for the SumoFences for functionality:
publicTimerTaskt() {
returnnewTimerTask() {
publicvoidrun() {
if (SumoFences.this.is()) {
inta = higher(); // determines additional height of the mapfor (BlockPosp: SumoFences.f_p) {
for (inti = 0;
(double) i < SumoFences.b.getInput(); ++i) {
BlockPosp2 = newBlockPos(p.getX(), p.getY() + i + a, p.getZ()); // updated to use variable 'a'if (Module.mc.theWorld.getBlockState(p2).getBlock() == Blocks.air) {
Module.mc.theWorld.setBlockState(p2, SumoFences.this.f);
}
}
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
There is a new map to be added for the module Sumo Fences to work. The map name is "Fort Royale".
Raven-bPLUS/src/main/java/keystrokesmod/sToNkS/module/modules/minigames/SumoFences.java
Line 26 in 046d8b4
UPDATE:
Got things fixed myself, the new map is actually higher up than the others (by 7 blocks)
Just made the following method:
Here is the updated
t
method for the SumoFences for functionality:The text was updated successfully, but these errors were encountered: