* Reduced default max screen resolution to 1920x1080

* Fixed bug causing crash when breaking the screen block which holds the tile entity
* Updated README
This commit is contained in:
Nicolas BARBOTIN 2018-02-11 23:08:26 +01:00
parent aeac185a67
commit e11bfed9fd
3 changed files with 15 additions and 4 deletions

View File

@ -1,8 +1,16 @@
# WebDisplays for Minecraft 1.12.2
This is the unfinished port of the WebDisplays mod for Minecraft 1.12.2. The text below is my "TODO" list.
### TODO
* TESTING
### Bugs to fix
* Middle-click bug
* Limit screen size
* Bugged friend list
* Multiply volume by game volume
* Memory leak (screens aren't deleted?!?)
* GUIs are not closed blocks gets destroyed
### Things before release
* Fix bugs (obviously)
* "Anti-9minecraft"
* Write wiki
* Update website

View File

@ -123,8 +123,8 @@ public class WebDisplays {
Property hardRecipe = cfg.get("main", "hardRecipes", true);
Property homePage = cfg.get("main", "homepage", "mod://webdisplays/main.html");
Property disableOT = cfg.get("main", "disableOwnershipThief", false);
Property maxResX = cfg.get("main", "maxResolutionX", 7680);
Property maxResY = cfg.get("main", "maxResolutionY", 4320);
Property maxResX = cfg.get("main", "maxResolutionX", 1920);
Property maxResY = cfg.get("main", "maxResolutionY", 1080);
Property miniservPort = cfg.get("main", "miniservPort", 25566);
Property miniservQuota = cfg.get("main", "miniservQuota", 1024); //It's stored as a string anyway
Property loadDistance = cfg.get("client", "loadDistance", 30.0);

View File

@ -1059,6 +1059,9 @@ public class TileEntityScreen extends TileEntity {
@Override
public boolean shouldRefresh(World world, BlockPos pos, @Nonnull IBlockState oldState, @Nonnull IBlockState newState) {
if(oldState.getBlock() != WebDisplays.INSTANCE.blockScreen || newState.getBlock() != WebDisplays.INSTANCE.blockScreen)
return true;
return oldState.getValue(BlockScreen.hasTE) != newState.getValue(BlockScreen.hasTE);
}