Sign in to follow this  
Lucas

Raw meat, fish, filets into FSB

Recommended Posts

Some servers have this, I thought I would find this mod here but nothing.

 

Store raw meat, fish, filets into the fsb

 

Thanks :)

Share this post


Link to post
Share on other sites

once the cooking update hits WU this will be included. Im not sure when they they will do that update though

  • Like 2

Share this post


Link to post
Share on other sites

My big containers mod can do the fish part but it has a bunch of other stuff you may not want.

 

It is a very simple change. Here is some code that I slightly altered from my mod to fit what you're asking for. You call it from within onServerStarted() used in ago's modloader.

private static void makeItemsBulkReflection() throws NoSuchFieldException, IllegalAccessException {
        Map<Integer, ItemTemplate> fieldTemplates = ReflectionUtil.getPrivateField(
                ItemTemplateFactory.class, ReflectionUtil.getField(ItemTemplateFactory.class, "templates"));
        Field fieldBulk = ReflectionUtil.getField(ItemTemplate.class, "bulk");
        for (ItemTemplate template : fieldTemplates.values()) {
            if (template.isFish() || template.isMeat()) {
                ReflectionUtil.setPrivateField(template, fieldBulk, Boolean.TRUE);
            }
        }
    }

 

On a related note, once 1.3 gets here I plan to mod something that will allow putting lot more cooking things to go in FSB. Maybe even liquids.

Edited by joedobo
removed code related to storing gems in bulk bins
  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this