Skip to content

Instantly share code, notes, and snippets.

View abused's full-sized avatar

Moe abused

View GitHub Profile
import React from 'react';
import {
TouchableOpacity,
SafeAreaView,
RefreshControl,
Text,
FlatList,
ActivityIndicator,
} from "react-native";
import FontAwesome5Icon from "react-native-vector-icons/FontAwesome5";
const MainStack = createMaterialBottomTabNavigator(
{
Home: {
screen: HomeStack,
navigationOptions: {
tabBarLabel: <Text style={{fontSize: 14}}>Home</Text>,
tabBarIcon: ({tintColor}) => (<FontAwesome color={tintColor} size={24} name='home' />)
}
},
List: {
{
"name": "Default",
"backgroundColor": "#1D1D1D",
"navBackgroundColor": "#343434",
"blueColor": "#05b7ed",
"redColor": "#FF5757",
"darkBlueColor": "#047A9E",
"placeholderColor": "#545454",
"buttonTextColor": "white",
"textColor": "white",
CommandRegistry.INSTANCE.register(true, serverCommandSourceCommandDispatcher -> serverCommandSourceCommandDispatcher.register(
ServerCommandManager
.literal("delhome")
.then(ServerCommandManager.argument("homename", StringArgumentType.string()).executes(context -> {
ServerPlayerEntity playerEntity = context.getSource().getPlayer();
PlayerHomePersistentState state = PlayerHomePersistentState.get(context.getSource().getWorld());
String homeName = StringArgumentType.getString(context, "homename");
if (state.doesPlayerHaveHome(playerEntity.getUuid(), homeName)) {
state.deletePlayerHome(playerEntity.getUuid(), homeName);
@abused
abused / Error
Created December 19, 2018 00:21
[19:18:23] [main/FATAL]: Mixin apply failed fabmod.client.json:MixinClientPlayerEntity -> net.minecraft.client.network.ClientPlayerEntity: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Invalid descriptor on fabmod.client.json:MixinClientPlayerEntity->@Inject::handler$openInventory$zcc000(Lnet/minecraft/inventory/Inventory;)V! Expected (Lnet/minecraft/inventory/Inventory;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V but found (Lnet/minecraft/inventory/Inventory;)V
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Invalid descriptor on fabmod.client.json:MixinClientPlayerEntity->@Inject::handler$openInventory$zcc000(Lnet/minecraft/inventory/Inventory;)V! Expected (Lnet/minecraft/inventory/Inventory;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V but found (Lnet/minecraft/inventory/Inventory;)V
at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.inject(CallbackInjector.java:495) ~[sponge-mixin-0.7.11.3.jar:0.