22w05a
This commit is contained in:
1 parent
1432f06438
commit
ac7da0c2ca
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
# or better: https://modmuss50.me/fabric.html
|
# or better: https://modmuss50.me/fabric.html
|
||||||
minecraft_version=22w03a
|
minecraft_version=22w05a
|
||||||
loader_version=0.12.12
|
loader_version=0.12.12
|
||||||
fabric_version=0.46.2+1.18
|
fabric_version=0.46.2+1.18
|
||||||
|
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ public class OptimizedExplosion
|
|||||||
|
|
||||||
private static void blastCalc(Explosion e){
|
private static void blastCalc(Explosion e){
|
||||||
ExplosionAccessor eAccess = (ExplosionAccessor) e;
|
ExplosionAccessor eAccess = (ExplosionAccessor) e;
|
||||||
if(blastChanceLocation == null || blastChanceLocation.distSqr(eAccess.getX(), eAccess.getY(), eAccess.getZ(), false) > 200) return;
|
if(blastChanceLocation == null || blastChanceLocation.distToLowCornerSqr(eAccess.getX(), eAccess.getY(), eAccess.getZ()) > 200) return;
|
||||||
chances.clear();
|
chances.clear();
|
||||||
for (int j = 0; j < 16; ++j) {
|
for (int j = 0; j < 16; ++j) {
|
||||||
for (int k = 0; k < 16; ++k) {
|
for (int k = 0; k < 16; ++k) {
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ public class WorldTools
|
|||||||
{
|
{
|
||||||
int vd = world.getServer().getPlayerList().getViewDistance() * 16;
|
int vd = world.getServer().getPlayerList().getViewDistance() * 16;
|
||||||
int vvd = vd * vd;
|
int vvd = vd * vd;
|
||||||
List<ServerPlayer> nearbyPlayers = world.getPlayers(p -> pos.distSqr(p.getX(), pos.getY(), p.getZ(), true) < vvd);
|
List<ServerPlayer> nearbyPlayers = world.getPlayers(p -> pos.distToCenterSqr(p.getX(), pos.getY(), p.getZ()) < vvd);
|
||||||
if (!nearbyPlayers.isEmpty())
|
if (!nearbyPlayers.isEmpty())
|
||||||
{
|
{
|
||||||
ClientboundLevelChunkWithLightPacket packet = new ClientboundLevelChunkWithLightPacket(worldChunk, world.getLightEngine(), null, null, false); // false seems to update neighbours as well.
|
ClientboundLevelChunkWithLightPacket packet = new ClientboundLevelChunkWithLightPacket(worldChunk, world.getLightEngine(), null, null, false); // false seems to update neighbours as well.
|
||||||
|
|||||||
Reference in new issue
Block a user