Fix other forge compile issues
This commit is contained in:
parent
27d5e9e1aa
commit
cf397524ff
@ -36,7 +36,6 @@ public class LocationMaskedPlayerWrapper extends PlayerWrapper {
|
||||
|
||||
@Override
|
||||
public void setPosition(Vector pos, float pitch, float yaw) {
|
||||
System.out.println("SET POSITION");
|
||||
this.position = pos;
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ public class ForgeMain {
|
||||
FawePlayer fp = FawePlayer.wrap(player);
|
||||
if (fp.getMeta("lastWorld") != event.world) {
|
||||
fp.setMeta("lastWorld", event.world);
|
||||
if (Settings.STORE_HISTORY_ON_DISK) {
|
||||
if (Settings.HISTORY.USE_DISK) {
|
||||
fp.getSession().clearHistory();
|
||||
fp.loadSessionsFromDisk(fp.getWorld());
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ public class ForgeMain {
|
||||
FawePlayer fp = FawePlayer.wrap(player);
|
||||
if (fp.getMeta("lastWorld") != event.world) {
|
||||
fp.setMeta("lastWorld", event.world);
|
||||
if (Settings.STORE_HISTORY_ON_DISK) {
|
||||
if (Settings.HISTORY.USE_DISK) {
|
||||
fp.getSession().clearHistory();
|
||||
fp.loadSessionsFromDisk(fp.getWorld());
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class FaweSponge implements IFawe {
|
||||
|
||||
@Override
|
||||
public FaweQueue getNewQueue(String world, boolean fast) {
|
||||
if (fast || Settings.COMBINE_HISTORY_STAGE) {
|
||||
if (fast || Settings.HISTORY.COMBINE_STAGES) {
|
||||
try {
|
||||
return new SpongeQueue_1_8(world);
|
||||
} catch (Throwable e) {
|
||||
|
@ -64,7 +64,7 @@ public class SpongeMain {
|
||||
|
||||
@Listener
|
||||
public void onMove(DisplaceEntityEvent.TargetPlayer event) {
|
||||
if (Settings.STORE_HISTORY_ON_DISK) {
|
||||
if (Settings.HISTORY.USE_DISK) {
|
||||
World from = event.getFromTransform().getExtent();
|
||||
World to = event.getToTransform().getExtent();
|
||||
if (!from.equals(to)) {
|
||||
|
@ -236,7 +236,7 @@ public class SpongeQueue_ALL extends NMSMappedFaweQueue<World, net.minecraft.wor
|
||||
@Override
|
||||
public boolean setComponents(FaweChunk fc, RunnableVal<FaweChunk> changeTask) {
|
||||
if (changeTask != null) {
|
||||
Settings.COMBINE_HISTORY_STAGE = false;
|
||||
Settings.HISTORY.COMBINE_STAGES = false;
|
||||
throw new UnsupportedOperationException("Combine stages not supported");
|
||||
}
|
||||
SpongeChunk_1_8 fs = (SpongeChunk_1_8) fc;
|
||||
@ -296,7 +296,7 @@ public class SpongeQueue_ALL extends NMSMappedFaweQueue<World, net.minecraft.wor
|
||||
|
||||
@Override
|
||||
public CharFaweChunk getPrevious(CharFaweChunk fs, ExtendedBlockStorage[] sections, Map<?, ?> tilesGeneric, Collection<?>[] entitiesGeneric, Set<UUID> createdEntities, boolean all) throws Exception {
|
||||
Settings.COMBINE_HISTORY_STAGE = false;
|
||||
Settings.HISTORY.COMBINE_STAGES = false;
|
||||
throw new UnsupportedOperationException("Combine stages not supported");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user