Sync fixes / Fixed linear filtering resetting on mod load
This commit is contained in:
@@ -429,6 +429,7 @@ public class Mods implements Loadable{
|
|||||||
content.load();
|
content.load();
|
||||||
content.loadColors();
|
content.loadColors();
|
||||||
data.load();
|
data.load();
|
||||||
|
Core.atlas.getTextures().each(t -> t.setFilter(Core.settings.getBool("linear") ? TextureFilter.Linear : TextureFilter.Nearest));
|
||||||
requiresReload = false;
|
requiresReload = false;
|
||||||
|
|
||||||
Events.fire(new ContentReloadEvent());
|
Events.fire(new ContentReloadEvent());
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ public class LiquidModule extends BlockModule{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void read(DataInput stream) throws IOException{
|
public void read(DataInput stream) throws IOException{
|
||||||
|
Arrays.fill(liquids, 0);
|
||||||
byte count = stream.readByte();
|
byte count = stream.readByte();
|
||||||
|
|
||||||
for(int j = 0; j < count; j++){
|
for(int j = 0; j < count; j++){
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public class PowerModule extends BlockModule{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void read(DataInput stream) throws IOException{
|
public void read(DataInput stream) throws IOException{
|
||||||
|
links.clear();
|
||||||
short amount = stream.readShort();
|
short amount = stream.readShort();
|
||||||
for(int i = 0; i < amount; i++){
|
for(int i = 0; i < amount; i++){
|
||||||
links.add(stream.readInt());
|
links.add(stream.readInt());
|
||||||
|
|||||||
Reference in New Issue
Block a user