Compare commits

..

No commits in common. "3a323ad3f936e06d2f416ab77bd7167735ecee0e" and "e04dc6ffe296b2c976e80620a35638d3bbf1bfde" have entirely different histories.

6 changed files with 7 additions and 33 deletions

View File

@ -1,8 +1,5 @@
# Changelog # Changelog
**1.0.12**
* Allow Disabling Beds Setting Spawn
**1.0.11** **1.0.11**
* Fix Loading On Client Without ModMenu * Fix Loading On Client Without ModMenu
* Fix Loading On Server * Fix Loading On Server

View File

@ -3,20 +3,20 @@ org.gradle.jvmargs = -Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version = 1.16.4 minecraft_version = 1.16.3
curseforge_id = 368420 curseforge_id = 368420
simple_minecraft_version = 1.16.4 simple_minecraft_version = 1.16.3
yarn_build = 7 yarn_build = 47
fabric_loader_version = 0.10.8 fabric_loader_version = 0.10.3+build.211
# Mod Properties # Mod Properties
mod_version = 1.0.12 mod_version = 1.0.11
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
archives_base_name = slightlyvanilla archives_base_name = slightlyvanilla
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_api_version = 0.28.1+1.16 fabric_api_version = 0.24.1+build.412-1.16
modmenu_version = 1.14.6+build.31 modmenu_version = 1.14.6+build.31
cloth_config_version = 4.7.0-unstable cloth_config_version = 4.7.0-unstable
autoconfig_version = 3.2.0-unstable autoconfig_version = 3.2.0-unstable

View File

@ -21,7 +21,6 @@ public class ModConfig implements ConfigData {
public boolean disableInstantNetherPortalInCreative = true; public boolean disableInstantNetherPortalInCreative = true;
@Environment(EnvType.CLIENT) @Environment(EnvType.CLIENT)
public boolean noteBlockScreen = true; public boolean noteBlockScreen = true;
public boolean bedsSetSpawn = true;
public static class ThrowableOption { public static class ThrowableOption {
public boolean player; public boolean player;

View File

@ -1,20 +0,0 @@
package com.thebrokenrail.slightlyvanilla.mixin;
import com.thebrokenrail.slightlyvanilla.SlightlyVanilla;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(ServerPlayerEntity.class)
public class MixinServerPlayerEntity {
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerPlayerEntity;setSpawnPoint(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FZZ)V"), method = "trySleep")
public void setSpawnPoint(ServerPlayerEntity obj, RegistryKey<World> dimension, BlockPos pos, float angle, boolean spawnPointSet, boolean bl) {
if (SlightlyVanilla.getConfig().bedsSetSpawn) {
obj.setSpawnPoint(dimension, pos, angle, spawnPointSet, bl);
}
}
}

View File

@ -13,7 +13,6 @@
"text.autoconfig.slightlyvanilla.option.allowLeashingVillagers": "Allow Leashing Villagers", "text.autoconfig.slightlyvanilla.option.allowLeashingVillagers": "Allow Leashing Villagers",
"text.autoconfig.slightlyvanilla.option.disableInstantNetherPortalInCreative": "Disable Instant Nether Portal In Creative", "text.autoconfig.slightlyvanilla.option.disableInstantNetherPortalInCreative": "Disable Instant Nether Portal In Creative",
"text.autoconfig.slightlyvanilla.option.noteBlockScreen": "Add Note Block Screen", "text.autoconfig.slightlyvanilla.option.noteBlockScreen": "Add Note Block Screen",
"text.autoconfig.slightlyvanilla.option.bedsSetSpawn": "Beds Set Spawn",
"entity.slightlyvanilla.slimeball": "Slimeball", "entity.slightlyvanilla.slimeball": "Slimeball",
"entity.slightlyvanilla.spawn_egg": "Spawn Egg", "entity.slightlyvanilla.spawn_egg": "Spawn Egg",
"text.slightlyvanilla.noteblock_screen_slider": "Note: %s (%s)", "text.slightlyvanilla.noteblock_screen_slider": "Note: %s (%s)",

View File

@ -3,8 +3,8 @@
"package": "com.thebrokenrail.slightlyvanilla.mixin", "package": "com.thebrokenrail.slightlyvanilla.mixin",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_8",
"client": [ "client": [
"MixinClientPlayerInteractionManager",
"MixinClientPlayNetworkHandler", "MixinClientPlayNetworkHandler",
"MixinClientPlayerInteractionManager",
"ScreenHandlerAccessor" "ScreenHandlerAccessor"
], ],
"mixins": [ "mixins": [
@ -14,7 +14,6 @@
"MixinNetherPortalBlockAreaHelper", "MixinNetherPortalBlockAreaHelper",
"MixinPlayerEntity", "MixinPlayerEntity",
"MixinRespawnAnchorBlock", "MixinRespawnAnchorBlock",
"MixinServerPlayerEntity",
"MixinSpawnEggItem" "MixinSpawnEggItem"
], ],
"injectors": { "injectors": {