get rid of reach attributes since its unused
This commit is contained in:
parent
2ccb3c47e3
commit
28f74a8287
3 changed files with 9 additions and 10 deletions
|
@ -69,7 +69,7 @@ public interface IXplatAbstractions {
|
||||||
// https://github.com/VazkiiMods/Botania/blob/13b7bcd9cbb6b1a418b0afe455662d29b46f1a7f/Xplat/src/main/java/vazkii/botania/xplat/IXplatAbstractions.java#L157
|
// https://github.com/VazkiiMods/Botania/blob/13b7bcd9cbb6b1a418b0afe455662d29b46f1a7f/Xplat/src/main/java/vazkii/botania/xplat/IXplatAbstractions.java#L157
|
||||||
Packet<ClientGamePacketListener> toVanillaClientboundPacket(IMessage message);
|
Packet<ClientGamePacketListener> toVanillaClientboundPacket(IMessage message);
|
||||||
|
|
||||||
double getReachDistance(Player player);
|
// double getReachDistance(Player player);
|
||||||
|
|
||||||
// Things that used to be caps
|
// Things that used to be caps
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@ import at.petrak.hexcasting.xplat.IXplatAbstractions;
|
||||||
import at.petrak.hexcasting.xplat.IXplatTags;
|
import at.petrak.hexcasting.xplat.IXplatTags;
|
||||||
import at.petrak.hexcasting.xplat.Platform;
|
import at.petrak.hexcasting.xplat.Platform;
|
||||||
import com.google.common.base.Suppliers;
|
import com.google.common.base.Suppliers;
|
||||||
import com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes;
|
|
||||||
import com.mojang.serialization.Lifecycle;
|
import com.mojang.serialization.Lifecycle;
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
import net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents;
|
import net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents;
|
||||||
|
@ -113,10 +112,10 @@ public class FabricXplatImpl implements IXplatAbstractions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public double getReachDistance(Player player) {
|
// public double getReachDistance(Player player) {
|
||||||
return ReachEntityAttributes.getReachDistance(player, 5.0);
|
// return ReachEntityAttributes.getReachDistance(player, 5.0);
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendPacketToPlayer(ServerPlayer target, IMessage packet) {
|
public void sendPacketToPlayer(ServerPlayer target, IMessage packet) {
|
||||||
|
|
|
@ -117,10 +117,10 @@ public class ForgeXplatImpl implements IXplatAbstractions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public double getReachDistance(Player player) {
|
// public double getReachDistance(Player player) {
|
||||||
return player.getAttributeValue(ForgeMod.REACH_DISTANCE.get());
|
// return player.getAttributeValue(ForgeMod.REACH_DISTANCE.get());
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBrainsweepAddlData(Mob mob) {
|
public void setBrainsweepAddlData(Mob mob) {
|
||||||
|
|
Loading…
Reference in a new issue