update SLA range, patch playervis
This commit is contained in:
parent
541e6e1ae6
commit
7b747eb291
3 changed files with 4 additions and 3 deletions
|
@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx2g
|
|||
baseGroup = com.github.stachelbeere1248.zombiesutils
|
||||
mcVersion = 1.8.9
|
||||
modid = zombiesutils
|
||||
version = 1.3.0-PREVIEW_3
|
||||
version = 1.3.0-PREVIEW_4
|
|
@ -31,7 +31,7 @@ public class SLA {
|
|||
break;
|
||||
case PRISON:
|
||||
this.rooms = new Room[0];
|
||||
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("$cThis map has no SLA database yet. Contribute by dming Stachelbeere1248 coordinates for windows on Discord."));
|
||||
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§cThis map has no SLA database yet. Contribute by dming Stachelbeere1248 coordinates for windows on Discord."));
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unexpected value: " + map);
|
||||
|
@ -91,7 +91,7 @@ public class SLA {
|
|||
}
|
||||
|
||||
// (2x)²+(2y)²+(2z)² = 4(x²+y²+z²) = 4d²
|
||||
if (distanceDoubledThenSquared < 10000) {
|
||||
if (distanceDoubledThenSquared < 6400) {
|
||||
window.setActive(true);
|
||||
room.increaseActiveWindowCount();
|
||||
} else window.setActive(false);
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
public class RenderPlayerHandler {
|
||||
@SubscribeEvent
|
||||
public void onRender(RenderPlayerEvent.@NotNull Pre event) {
|
||||
if (event.entityPlayer.isPlayerSleeping() || event.entityPlayer.isUser()) return;
|
||||
if (inRange(event.entityPlayer.getPositionVector())) {
|
||||
event.setCanceled(!ZombiesUtils.getInstance().getConfig().getPlayerVis());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue